| 1 | <?php |
||
| 12 | class RelationFactory |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | private $relations; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * RelationFactory constructor. |
||
| 21 | * |
||
| 22 | * @param array $relations |
||
| 23 | */ |
||
| 24 | public function __construct(array $relations) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get the relations of an Entity. |
||
| 31 | * Relations processors are passed to the constructor. |
||
| 32 | * |
||
| 33 | * @param object $resource |
||
| 34 | * |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | public function getRelations($resource) |
||
| 53 | } |
||
| 54 |