1 | <?php |
||
13 | class ContactInformationFieldHelper |
||
14 | { |
||
15 | /** @var ConfigProvider */ |
||
16 | protected $configProvider; |
||
17 | |||
18 | /** @var array */ |
||
19 | protected $entityContactInfoColumns = array(); |
||
20 | |||
21 | /** @var DoctrineHelper */ |
||
22 | protected $doctrineHelper; |
||
23 | |||
24 | /** @var EntityFieldProvider */ |
||
25 | protected $fieldProvider; |
||
26 | |||
27 | /** |
||
28 | * @param ConfigProvider $configProvider |
||
29 | * @param DoctrineHelper $doctrineHelper |
||
30 | * @param EntityFieldProvider $fieldProvider |
||
31 | */ |
||
32 | public function __construct( |
||
41 | |||
42 | /** |
||
43 | * @deprecated since 1.9.9 to be removed in 2.0.0 use getQueryContactInformationFields instead. |
||
44 | * |
||
45 | * @param AbstractQueryDesigner $queryDesigner |
||
46 | * |
||
47 | * @return array |
||
48 | */ |
||
49 | public function getQueryContactInformationColumns(AbstractQueryDesigner $queryDesigner) |
||
53 | |||
54 | /** |
||
55 | * @param AbstractQueryDesigner $queryDesigner |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | public function getQueryContactInformationFields(AbstractQueryDesigner $queryDesigner) |
||
84 | |||
85 | /** |
||
86 | * Get entity contact information fields. |
||
87 | * |
||
88 | * @deprecated since 1.9.9 to be removed in 2.0.0 use getEntityContactInformationFields instead. |
||
89 | * |
||
90 | * @param string|object $entity |
||
91 | * @return array |
||
92 | */ |
||
93 | public function getEntityContactInformationColumns($entity) |
||
97 | |||
98 | /** |
||
99 | * Get entity contact information fields. |
||
100 | * |
||
101 | * @param string|object $entity |
||
102 | * @return array |
||
103 | */ |
||
104 | public function getEntityContactInformationFields($entity) |
||
117 | |||
118 | /** |
||
119 | * @deprecated since 1.9.9 to be removed in 2.0.0 use getEntityContactInformationFieldsInfo instead. |
||
120 | * |
||
121 | * @param string $entity |
||
122 | * @return array |
||
123 | */ |
||
124 | public function getEntityContactInformationColumnsInfo($entity) |
||
128 | |||
129 | /** |
||
130 | * @param string $entity |
||
131 | * @return array |
||
132 | */ |
||
133 | public function getEntityContactInformationFieldsInfo($entity) |
||
148 | |||
149 | /** |
||
150 | * @param string $entity |
||
151 | * @param string $fieldName |
||
152 | * @return string|null |
||
153 | */ |
||
154 | public function getContactInformationFieldType($entity, $fieldName) |
||
174 | |||
175 | /** |
||
176 | * @deprecated since 1.9.9 to be removed in 2.0.0 use getEntityLevelContactInfoFields instead. |
||
177 | * |
||
178 | * @param string $entity |
||
179 | * @return array |
||
180 | */ |
||
181 | protected function getEntityLevelContactInfoColumns($entity) |
||
185 | |||
186 | /** |
||
187 | * @param string $entity |
||
188 | * @return array |
||
189 | */ |
||
190 | protected function getEntityLevelContactInfoFields($entity) |
||
210 | } |
||
211 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.