1 | <?php |
||
29 | class IntegrationAssociationQuery extends CacheableActiveQuery |
||
30 | { |
||
31 | use AuditAttributesTrait, |
||
32 | FieldAttributeTrait, |
||
33 | ElementAttributeTrait, |
||
34 | ObjectAttributeTrait, |
||
35 | SiteAttributeTrait; |
||
36 | |||
37 | /** |
||
38 | * The sort order attribute |
||
39 | */ |
||
40 | const SORT_ORDER_ATTRIBUTE = 'sortOrder'; |
||
41 | |||
42 | /** |
||
43 | * The sort order direction |
||
44 | */ |
||
45 | const SORT_ORDER_DIRECTION = SORT_ASC; |
||
46 | |||
47 | /** |
||
48 | * @var int|null Sort order |
||
49 | */ |
||
50 | public $sortOrder; |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | public function init() |
||
67 | |||
68 | /** |
||
69 | * @param $value |
||
70 | * @return $this |
||
71 | */ |
||
72 | public function sortOrder($value) |
||
77 | |||
78 | /** |
||
79 | * @param $value |
||
80 | * @return $this |
||
81 | */ |
||
82 | public function setSortOrder($value) |
||
86 | |||
87 | /** |
||
88 | * @inheritdoc |
||
89 | * @throws QueryAbortedException |
||
90 | */ |
||
91 | public function prepare($builder) |
||
113 | |||
114 | /** |
||
115 | * Apply attribute conditions |
||
116 | */ |
||
117 | protected function applyElementConditions() |
||
123 | |||
124 | /** |
||
125 | * Apply attribute conditions |
||
126 | */ |
||
127 | protected function applyFieldConditions() |
||
133 | |||
134 | /** |
||
135 | * Apply attribute conditions |
||
136 | */ |
||
137 | protected function applySiteConditions() |
||
145 | } |
||
146 |
This check looks at variables that 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.