1 | <?php |
||
25 | class Vm implements LoggerAwareInterface |
||
26 | { |
||
27 | use LoggerAwareTrait; |
||
28 | |||
29 | /** |
||
30 | * @var Reflection |
||
31 | */ |
||
32 | private $root; |
||
33 | |||
34 | /** |
||
35 | * Process constructor. |
||
36 | * @param Reflection $root |
||
37 | */ |
||
38 | public function __construct(Reflection $root) |
||
42 | |||
43 | /** |
||
44 | * @param Readable $file |
||
45 | * @param iterable $opcodes |
||
46 | * @return Document|DocumentInterface |
||
47 | * @throws \Railt\Io\Exception\ExternalFileException |
||
48 | */ |
||
49 | public function run(Readable $file, iterable $opcodes): Document |
||
63 | |||
64 | /** |
||
65 | * @param OpcodeInterface $opcode |
||
66 | * @param mixed $result |
||
67 | */ |
||
68 | private function log(OpcodeInterface $opcode, $result): void |
||
84 | } |
||
85 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.