| Total Complexity | 4 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | final class ValueDependency implements DependencyInterface |
||
| 20 | { |
||
| 21 | /** @var string */ |
||
| 22 | private $name; |
||
| 23 | |||
| 24 | /** @var mixed */ |
||
| 25 | private $value; |
||
| 26 | |||
| 27 | /** @var array */ |
||
| 28 | private $variants; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $name |
||
| 32 | * @param mixed $value |
||
| 33 | * @param array $variants |
||
| 34 | */ |
||
| 35 | public function __construct(string $name, $value, array $variants = null) |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | */ |
||
| 45 | public function getName(): string |
||
| 46 | { |
||
| 47 | return $this->name; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @inheritdoc |
||
| 52 | */ |
||
| 53 | public function getValue() |
||
| 54 | { |
||
| 55 | return $this->value; |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @inheritdoc |
||
| 60 | */ |
||
| 61 | public function getVariants(): array |
||
| 64 | } |
||
| 65 | } |
||
| 66 |