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 | */ |
||
50 | 13 | public function __construct(ParametersListInterface $parameters, ThrowSpecListInterface $exceptions, ReturnSpecInterface $return, array $decorators = []) |
|
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | 2 | public function getParameters(): ParametersListInterface |
|
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | 3 | public function getExceptions(): ThrowSpecListInterface |
|
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | 3 | public function getReturn(): ReturnSpecInterface |
|
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | 13 | public function getDecorators(): array |
|
89 | |||
90 | } |
||
91 |