| Total Complexity | 5 | 
| Total Lines | 30 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 7 | final class Value implements ValueInterface | ||
| 8 | { | ||
| 9 | /** @var callable|string */ | ||
| 10 | private $value; | ||
| 11 | |||
| 12 | /** | ||
| 13 | * @param string|callable $value | ||
| 14 | */ | ||
| 15 | private function __construct($value) | ||
| 16 |     { | ||
| 17 | $this->value = $value; | ||
| 18 | } | ||
| 19 | |||
| 20 | public static function createFromString(string $value): self | ||
| 23 | } | ||
| 24 | |||
| 25 | public static function createFromCallable(callable $callable): self | ||
| 26 |     { | ||
| 27 | return new self($callable); | ||
| 28 | } | ||
| 29 | |||
| 30 | public function getValue(): string | ||
| 37 | } | ||
| 38 | } | ||
| 39 |