1 | <?php declare(strict_types=1); |
||
24 | class FunctionSpec implements FunctionSpecInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var ParametersListInterface |
||
28 | */ |
||
29 | private $parameters; |
||
30 | /** |
||
31 | * @var ThrowSpecListInterface |
||
32 | */ |
||
33 | private $exceptions; |
||
34 | |||
35 | /** |
||
36 | * @var ReturnSpecInterface |
||
37 | */ |
||
38 | private $return; |
||
39 | /** |
||
40 | * @var array|DecoratorSpecInterface[] |
||
41 | */ |
||
42 | private $decorators; |
||
43 | |||
44 | /** |
||
45 | * @param ParametersListInterface $parameters |
||
46 | * @param ThrowSpecListInterface $exceptions |
||
47 | * @param ReturnSpecInterface $return |
||
48 | * @param DecoratorSpecInterface[] $decorators |
||
49 | 8 | */ |
|
50 | public function __construct(ParametersListInterface $parameters, ThrowSpecListInterface $exceptions, ReturnSpecInterface $return, array $decorators = []) |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | 1 | */ |
|
61 | public function getParameters(): ParametersListInterface |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | 2 | */ |
|
69 | public function getExceptions(): ThrowSpecListInterface |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | 3 | */ |
|
77 | public function getReturn(): ReturnSpecInterface |
||
81 | 8 | ||
82 | /** |
||
83 | 8 | * {@inheritdoc} |
|
84 | */ |
||
85 | public function getDecorators(): array |
||
89 | |||
90 | } |
||
91 |