1 | <?php |
||
19 | abstract class CompositeUrlRule extends Object implements UrlRuleInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var UrlRuleInterface[] the URL rules contained in this composite rule. |
||
23 | * This property is set in [[init()]] by the return value of [[createRules()]]. |
||
24 | */ |
||
25 | protected $rules = []; |
||
26 | /** |
||
27 | * @var int|null status of the URL creation after the last [[createUrl()]] call. |
||
28 | * @since 2.0.12 |
||
29 | */ |
||
30 | protected $createStatus; |
||
31 | |||
32 | |||
33 | /** |
||
34 | * Creates the URL rules that should be contained within this composite rule. |
||
35 | * @return UrlRuleInterface[] the URL rules |
||
36 | */ |
||
37 | abstract protected function createRules(); |
||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | 13 | public function init() |
|
47 | |||
48 | /** |
||
49 | * @inheritdoc |
||
50 | */ |
||
51 | 1 | public function parseRequest($manager, $request) |
|
70 | |||
71 | /** |
||
72 | * @inheritdoc |
||
73 | */ |
||
74 | 1 | public function createUrl($manager, $route, $params) |
|
88 | |||
89 | /** |
||
90 | * Iterates through specified rules and calls [[createUrl()]] for each of them. |
||
91 | * |
||
92 | * @param UrlRuleInterface[] $rules rules to iterate. |
||
93 | * @param UrlManager $manager the URL manager |
||
94 | * @param string $route the route. It should not have slashes at the beginning or the end. |
||
95 | * @param array $params the parameters |
||
96 | * @return bool|string the created URL, or `false` if none of specified rules cannot be used for creating this URL. |
||
97 | * @see createUrl() |
||
98 | * @since 2.0.12 |
||
99 | */ |
||
100 | 10 | protected function iterateRules($rules, $manager, $route, $params) |
|
122 | |||
123 | /** |
||
124 | * Returns status of the URL creation after the last [[createUrl()]] call. |
||
125 | * |
||
126 | * For multiple rules statuses will be combined by bitwise `or` operator |
||
127 | * (e.g. `UrlRule::CREATE_STATUS_PARSING_ONLY | UrlRule::CREATE_STATUS_PARAMS_MISMATCH`). |
||
128 | * |
||
129 | * @return null|int Status of the URL creation after the last [[createUrl()]] call. `null` if rule does not provide |
||
130 | * info about create status. |
||
131 | * @see $createStatus |
||
132 | * @see http://php.net/manual/en/language.operators.bitwise.php |
||
133 | * @since 2.0.12 |
||
134 | */ |
||
135 | 3 | public function getCreateUrlStatus() |
|
139 | } |
||
140 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.