| 1 | <?php |
||
| 22 | class SubStringMatcher implements MatcherInterface |
||
| 23 | { |
||
| 24 | private $_substr; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * SubstrMatcher constructor. |
||
| 28 | * |
||
| 29 | * @param $substr |
||
| 30 | */ |
||
| 31 | 1 | public function __construct($substr) |
|
| 35 | |||
| 36 | |||
| 37 | /** |
||
| 38 | * Matches all occurrences and returns token list |
||
| 39 | * |
||
| 40 | * @param string $source Source to match tokens |
||
| 41 | * |
||
| 42 | * @param TokenFactoryInterface $factory |
||
| 43 | * |
||
| 44 | * @return array |
||
| 45 | */ |
||
| 46 | 1 | public function match($source, TokenFactoryInterface $factory) |
|
| 64 | } |