1 | <? |
||
12 | class PatternMatcher implements PatternMatcherInterface { |
||
13 | |||
14 | /** |
||
15 | * @var Collection[] |
||
16 | */ |
||
17 | protected $collections = []; |
||
18 | |||
19 | |||
20 | /** |
||
21 | * |
||
22 | * @param Collection $collection |
||
23 | */ |
||
24 | public function __construct(Collection $collection) { |
||
27 | |||
28 | |||
29 | /** |
||
30 | * @inheritdoc |
||
31 | */ |
||
32 | public function apply(callable $pattern) { |
||
52 | |||
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | public function getCollections() { |
||
60 | |||
61 | |||
62 | /** |
||
63 | * @param callable $pattern |
||
64 | * @param Collection $collection |
||
65 | * @return Collection[] |
||
66 | * @throws Exception |
||
67 | */ |
||
68 | protected function iterateOverCollections(callable $pattern, Collection $collection) { |
||
88 | |||
89 | |||
90 | } |
Short opening tags are disabled in PHP’s default configuration. In such a case, all content of this file is output verbatim to the browser without being parsed, or executed.
As a precaution to avoid these problems better use the long opening tag
<?php
.