| 1 | <?php |
||
| 9 | abstract class View implements ViewInterface, Arrayable |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | protected $with = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var RepositoryInterface |
||
| 18 | */ |
||
| 19 | protected $repository; |
||
| 20 | |||
| 21 | public function setRepository(RepositoryInterface $repository) |
||
| 27 | |||
| 28 | public function getRepository() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return string[] |
||
| 35 | */ |
||
| 36 | public function getWith() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function with($relations) |
||
| 50 | |||
| 51 | public function toArray() |
||
| 55 | } |
||
| 56 |