| 1 | <?php |
||
| 13 | class FieldService extends BaseService |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var array Field |
||
| 17 | */ |
||
| 18 | protected $entities = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param Field $field |
||
| 22 | */ |
||
| 23 | 2 | public function add(EntityInterface $field) |
|
| 24 | { |
||
| 25 | 2 | if ($field instanceof Field) { |
|
| 26 | 2 | $this->entities[] = $field; |
|
| 27 | 2 | } |
|
| 28 | 2 | } |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @param $array |
||
| 32 | * @return Field |
||
| 33 | */ |
||
| 34 | 2 | public function parseArrayToEntity($array) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 2 | protected function getLink() |
|
| 49 | |||
| 50 | } |