Total Complexity | 6 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 14 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
12 | class Interpreter implements InterpreterInterface |
||
13 | { |
||
14 | private array $registryData; |
||
15 | |||
16 | /** |
||
17 | * Receives filing data |
||
18 | * -------------------------- |
||
19 | * Принимает данные картотеки |
||
20 | * |
||
21 | * @param RegistryInterface $registry |
||
22 | */ |
||
23 | public function __construct(RegistryInterface $registry) |
||
24 | { |
||
25 | $this->registryData = $registry->getData(); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Interpret the request according to the incoming $input string |
||
30 | * -------------------------------------------------------------- |
||
31 | * Инерпретирует запрос в соответствии со входящей строкой $input |
||
32 | * |
||
33 | * @param string $input |
||
34 | * @return string |
||
35 | */ |
||
36 | public function interpret(string $input): string |
||
58 | } |
||
59 | } |
||
60 |