| 1 |
<?php |
| 2 |
namespace Payplug\Resource; |
| 3 |
|
| 4 |
/** |
| 5 |
* Interface designed to force resources to implement at least one factory. |
| 6 |
*/ |
| 7 |
interface IAPIResourceFactory |
| 8 |
{ |
| 9 |
/** |
| 10 |
* The factory method that constructs the API resource. |
| 11 |
* |
| 12 |
* @param array $attributes the default attributes. |
| 13 |
* |
| 14 |
* @return APIResource The new resource. |
| 15 |
*/ |
| 16 |
static function fromAttributes(array $attributes); |
| 17 |
} |
| 18 |
|