Total Complexity | 6 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | abstract class Execution implements ExecutionInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var DefinitionInterface |
||
25 | */ |
||
26 | private DefinitionInterface $context; |
||
27 | |||
28 | /** |
||
29 | * @var iterable |
||
30 | */ |
||
31 | private iterable $arguments; |
||
32 | |||
33 | /** |
||
34 | * Execution constructor. |
||
35 | * |
||
36 | * @param DefinitionInterface $context |
||
37 | * @param iterable $arguments |
||
38 | */ |
||
39 | public function __construct(DefinitionInterface $context, iterable $arguments = []) |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return DefinitionInterface |
||
47 | */ |
||
48 | public function getContext(): DefinitionInterface |
||
49 | { |
||
50 | return $this->context; |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @return iterable |
||
55 | */ |
||
56 | public function getArguments(): iterable |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * @param string $name |
||
63 | * @return mixed|null |
||
64 | */ |
||
65 | public function getArgument(string $name) |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * @param string $name |
||
72 | * @return bool |
||
73 | */ |
||
74 | public function hasArgument(string $name): bool |
||
79 |