Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
20 | 2 | public function containsCount( |
|
21 | string $serializedData, |
||
22 | string $searchTerm |
||
23 | ): int { |
||
24 | 2 | $tokenList = (new Tokenizer())->tokenize($serializedData); |
|
25 | 2 | $type = (new Parser())->parse($tokenList); |
|
26 | |||
27 | 2 | return $type->containsStringCount($searchTerm); |
|
28 | } |
||
29 | |||
41 | } |