1 | <?php declare(strict_types=1); |
||
19 | class BindingSpec implements BindingSpecInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $name; |
||
25 | /** |
||
26 | * @var FunctionSpecInterface|PropertySpecInterface |
||
27 | */ |
||
28 | private $spec; |
||
29 | |||
30 | /** |
||
31 | * @param string $name |
||
32 | * @param PropertySpecInterface|FunctionSpecInterface $spec |
||
33 | */ |
||
34 | 2 | public function __construct(string $name, $spec) |
|
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | 2 | public function getName(): string |
|
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 2 | public function getSpec() |
|
55 | } |
||
56 |