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 | |||
28 | /** |
||
29 | * Creates the URL rules that should be contained within this composite rule. |
||
30 | * @return UrlRuleInterface[] the URL rules |
||
31 | */ |
||
32 | abstract protected function createRules(); |
||
33 | |||
34 | /** |
||
35 | * @inheritdoc |
||
36 | */ |
||
37 | 11 | public function init() |
|
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | 1 | public function parseRequest($manager, $request) |
|
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | 1 | public function createUrl($manager, $route, $params) |
|
80 | } |
||
81 |