1 | <?php |
||
10 | class MultiObjectProperty extends AbstractProperty |
||
11 | { |
||
12 | /** |
||
13 | * @var array $allowedTypes |
||
14 | */ |
||
15 | private $allowedTypes; |
||
16 | |||
17 | /** |
||
18 | * @var boolean $groupedByType |
||
19 | */ |
||
20 | private $groupedByType = true; |
||
21 | |||
22 | /** |
||
23 | * @var string $joinTable |
||
24 | */ |
||
25 | private $joinTable = 'charcoal_multi_objects'; |
||
26 | |||
27 | /** |
||
28 | * @param array $types The allowed types map. |
||
29 | * @return MultiObjectProperty Chainable |
||
30 | */ |
||
31 | public function setAllowedTypes(array $types) |
||
38 | |||
39 | /** |
||
40 | * @param string $type The (allowed) object type. |
||
41 | * @param array $typeOptions Extra options for the type. |
||
42 | * @return MultiObjectProperty Chainable |
||
43 | */ |
||
44 | public function addAllowedType($type, array $typeOptions = []) |
||
49 | |||
50 | /** |
||
51 | * @return array |
||
52 | */ |
||
53 | public function getAllowedTypes() |
||
54 | { |
||
55 | return $this->allowedTypes; |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @param string $table The join table. |
||
60 | * @throws InvalidArgumentException If the table is not a string or contains invalid table characters. |
||
61 | * @return MultiObjectProperty Chainable |
||
62 | */ |
||
63 | public function setJoinTable($table) |
||
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getJoinTable() |
||
85 | { |
||
86 | return $this->joinTable; |
||
87 | } |
||
88 | |||
89 | /** |
||
90 | * Create the join table on the database source, if it does not exist. |
||
91 | * |
||
92 | * @return void |
||
93 | */ |
||
94 | public function createJoinTable() |
||
111 | |||
112 | /** |
||
113 | * @return boolean |
||
114 | */ |
||
115 | public function joinTableExists() |
||
124 | |||
125 | /** |
||
126 | * @return string |
||
127 | */ |
||
128 | public function type() |
||
132 | |||
133 | /** |
||
134 | * @return string|null |
||
135 | */ |
||
136 | public function sqlType() |
||
140 | |||
141 | /** |
||
142 | * @return integer |
||
143 | */ |
||
144 | public function sqlPdoType() |
||
148 | } |
||
149 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.