| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Tokenizer |
||
| 11 | { |
||
| 12 | private $fileFinder; |
||
| 13 | |||
| 14 | private $textFinder; |
||
| 15 | |||
| 16 | private $tokenModifier; |
||
| 17 | |||
| 18 | 10 | public function __construct( |
|
| 19 | FileFinderInterface $fileFinder, |
||
| 20 | TextFinderInterface $textFinder |
||
| 21 | ) { |
||
| 22 | 10 | $this->fileFinder = $fileFinder; |
|
| 23 | 10 | $this->textFinder = $textFinder; |
|
| 24 | 10 | $this->tokenModifier = new CompositeTokenModifier(); |
|
| 25 | 10 | } |
|
| 26 | |||
| 27 | 6 | public function addTokenModifier(TokenModifierInterface $tokenModifier) |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return TokenCollection[] |
||
| 35 | */ |
||
| 36 | 10 | public function tokenize(): array |
|
| 50 |