| 1 | <?php |
||
| 14 | abstract class AbstractResource |
||
| 15 | { |
||
| 16 | const RESOURCE_URL = ''; |
||
| 17 | |||
| 18 | protected $apiService; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * AbstractResource constructor. |
||
| 22 | */ |
||
| 23 | 1 | public function __construct() |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @return \Generator | ResourceObject[] |
||
| 30 | */ |
||
| 31 | public function getResources() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param $id |
||
| 38 | * @return \WoohooLabs\Yang\JsonApi\Schema\ResourceObject |
||
| 39 | */ |
||
| 40 | public function getResource($id) |
||
| 44 | |||
| 45 | } |