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