1 | <?php |
||
22 | trait LdapObjectChoiceTrait |
||
23 | { |
||
24 | /** |
||
25 | * @var \Closure|null |
||
26 | */ |
||
27 | protected $queryCallback; |
||
28 | |||
29 | /** |
||
30 | * @var LdapQueryBuilder|null |
||
31 | */ |
||
32 | protected $ldapQueryBuilder; |
||
33 | |||
34 | /** |
||
35 | * @var LdapManager |
||
36 | */ |
||
37 | protected $ldap; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $id; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $type; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | protected $labelAttribute; |
||
53 | |||
54 | /** |
||
55 | * @param LdapQueryBuilder|\Closure|null $query |
||
56 | */ |
||
57 | protected function setClosureOrQuery($query) |
||
65 | |||
66 | /** |
||
67 | * Get the values of a set of choices. |
||
68 | * |
||
69 | * @param LdapObject[] $choices |
||
70 | * @return array |
||
71 | */ |
||
72 | protected function getLdapValuesForChoices(LdapObject ...$choices) |
||
82 | |||
83 | /** |
||
84 | * Get the LDAP objects from LDAP. Optionally only get those specified by the passed values. |
||
85 | * |
||
86 | * @param array $values The values used to narrow the LDAP query. |
||
87 | * @return \LdapTools\Object\LdapObjectCollection |
||
88 | */ |
||
89 | protected function getLdapObjectsByQuery($values = []) |
||
111 | } |
||
112 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.