Skip to content

Commit

Permalink
Change Entity to Resource for reports
Browse files Browse the repository at this point in the history
  • Loading branch information
XaosSintez committed Mar 18, 2016
1 parent 7fc9e99 commit 9b32377
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/Entities/Reports/DisputesReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Rebilly\Entities\Reports;

use Rebilly\Rest\Entity;
use Rebilly\Rest\Resource;

/**
* Class DisputesReport
Expand All @@ -24,7 +24,7 @@
* @author Arman Tuyakbayev <arman.tuyakbayev@rebilly.com>
* @version 0.1
*/
final class DisputesReport extends Entity
final class DisputesReport extends Resource
{
/**
* @return array
Expand Down
4 changes: 2 additions & 2 deletions src/Entities/Reports/DunningReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Rebilly\Entities\Reports;

use Rebilly\Rest\Entity;
use Rebilly\Rest\Resource;

/**
* Class DunningReport
Expand All @@ -24,7 +24,7 @@
* @author Arman Tuyakbayev <arman.tuyakbayev@rebilly.com>
* @version 0.1
*/
final class DunningReport extends Entity
final class DunningReport extends Resource
{
/**
* @return array
Expand Down
4 changes: 2 additions & 2 deletions src/Entities/Reports/RetentionPercentageReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Rebilly\Entities\Reports;

use Rebilly\Rest\Entity;
use Rebilly\Rest\Resource;

/**
* Class RetentionPercentageReport
Expand All @@ -24,7 +24,7 @@
* @author Arman Tuyakbayev <arman.tuyakbayev@rebilly.com>
* @version 0.1
*/
final class RetentionPercentageReport extends Entity
final class RetentionPercentageReport extends Resource
{
/**
* @return array
Expand Down
4 changes: 2 additions & 2 deletions src/Entities/Reports/RetentionValueReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Rebilly\Entities\Reports;

use Rebilly\Rest\Entity;
use Rebilly\Rest\Resource;

/**
* Class RetentionValueReport
Expand All @@ -24,7 +24,7 @@
* @author Arman Tuyakbayev <arman.tuyakbayev@rebilly.com>
* @version 0.1
*/
final class RetentionValueReport extends Entity
final class RetentionValueReport extends Resource
{
/**
* @return array
Expand Down
4 changes: 2 additions & 2 deletions src/Entities/Reports/StatisticsReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Rebilly\Entities\Reports;

use Rebilly\Rest\Entity;
use Rebilly\Rest\Resource;

/**
* Class StatisticsReport
Expand All @@ -32,7 +32,7 @@
* @author Arman Tuyakbayev <arman.tuyakbayev@rebilly.com>
* @version 0.1
*/
final class StatisticsReport extends Entity
final class StatisticsReport extends Resource
{
/**
* @return float
Expand Down
4 changes: 2 additions & 2 deletions src/Entities/Reports/SubscribersReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Rebilly\Entities\Reports;

use Rebilly\Rest\Entity;
use Rebilly\Rest\Resource;

/**
* Class SubscribersReport
Expand All @@ -28,7 +28,7 @@
* @author Arman Tuyakbayev <arman.tuyakbayev@rebilly.com>
* @version 0.1
*/
final class SubscribersReport extends Entity
final class SubscribersReport extends Resource
{
/**
* @return array
Expand Down
4 changes: 2 additions & 2 deletions src/Entities/Reports/TransactionsHistogramReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Rebilly\Entities\Reports;

use Rebilly\Rest\Entity;
use Rebilly\Rest\Resource;

/**
* Class TransactionsHistogramReport
Expand All @@ -24,7 +24,7 @@
* @author Arman Tuyakbayev <arman.tuyakbayev@rebilly.com>
* @version 0.1
*/
final class TransactionsHistogramReport extends Entity
final class TransactionsHistogramReport extends Resource
{
/**
* @return array
Expand Down
4 changes: 2 additions & 2 deletions src/Entities/Reports/TransactionsReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Rebilly\Entities\Reports;

use Rebilly\Rest\Entity;
use Rebilly\Rest\Resource;

/**
* Class TransactionsReport
Expand All @@ -24,7 +24,7 @@
* @author Arman Tuyakbayev <arman.tuyakbayev@rebilly.com>
* @version 0.1
*/
final class TransactionsReport extends Entity
final class TransactionsReport extends Resource
{
/**
* @return array
Expand Down
6 changes: 0 additions & 6 deletions src/Entities/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,6 @@ public function __construct()
'3dsecure/{3dsecureId}' => function (array $content) {
return new ThreeDSecure($content);
},
'reporting-currencies' => function (array $content) {
return new ReportingCurrencies($content);
},
'reports' => function (array $content) {
return new DunningReport($content);
},
'reports/dunning' => function (array $content) {
return new DunningReport($content);
},
Expand Down

0 comments on commit 9b32377

Please sign in to comment.