1 | <?php declare(strict_types=1); |
||
23 | class FunctionSpec implements FunctionSpecInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var ParametersListInterface |
||
27 | */ |
||
28 | private $parameters; |
||
29 | /** |
||
30 | * @var ThrowSpecListInterface |
||
31 | */ |
||
32 | private $exceptions; |
||
33 | |||
34 | /** |
||
35 | * @var ReturnSpecInterface |
||
36 | */ |
||
37 | private $return; |
||
38 | /** |
||
39 | * @var bool |
||
40 | */ |
||
41 | private $needs_execution_context; |
||
42 | |||
43 | /** |
||
44 | * @param ParametersListInterface $parameters |
||
45 | * @param ThrowSpecListInterface $exceptions |
||
46 | * @param ReturnSpecInterface $return |
||
47 | * @param bool $needs_execution_context |
||
48 | */ |
||
49 | 8 | public function __construct(ParametersListInterface $parameters, ThrowSpecListInterface $exceptions, ReturnSpecInterface $return, bool $needs_execution_context = false) |
|
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | 1 | public function getParameters(): ParametersListInterface |
|
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | 2 | public function getExceptions(): ThrowSpecListInterface |
|
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | 3 | public function getReturn(): ReturnSpecInterface |
|
80 | |||
81 | 8 | public function needsExecutionContext(): bool |
|
85 | } |
||
86 |