1 | <?php |
||
24 | class Type extends Component |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * The event name |
||
29 | */ |
||
30 | const EVENT_REGISTER_TYPES = 'registerTypes'; |
||
31 | |||
32 | /** |
||
33 | * The property to uniquely identify a link type |
||
34 | */ |
||
35 | const IDENTIFIER = 'identifier'; |
||
36 | |||
37 | /** |
||
38 | * @var array |
||
39 | */ |
||
40 | private $types; |
||
41 | |||
42 | /** |
||
43 | * @return array |
||
44 | */ |
||
45 | public function findAll() |
||
53 | |||
54 | /** |
||
55 | * @param string $class |
||
56 | * @return TypeInterface|null |
||
57 | */ |
||
58 | public function find(string $class) |
||
65 | |||
66 | /** |
||
67 | * @return array |
||
68 | */ |
||
69 | protected function registerTypes() |
||
82 | |||
83 | /** |
||
84 | * Populate valid properties. This occurs when we have a content value |
||
85 | * and we need to populate it's contents on an existing TypeInterface |
||
86 | * |
||
87 | * @param TypeInterface $type |
||
88 | * @param array $properties |
||
89 | */ |
||
90 | public function populate(TypeInterface $type, array $properties) |
||
98 | |||
99 | /** |
||
100 | * @param array $types |
||
101 | * @return array |
||
102 | */ |
||
103 | private function resolveTypes(array $types) |
||
115 | |||
116 | /** |
||
117 | * @param $type |
||
118 | * @return array|null|object |
||
119 | */ |
||
120 | public function create($type) |
||
140 | |||
141 | /** |
||
142 | * @return array |
||
143 | */ |
||
144 | private function firstParty() |
||
153 | } |
||
154 |