Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
16 | final class MockValue implements FromNativeInterface, ToNativeInterface, MakeEmptyInterface |
||
17 | { |
||
18 | use FromToNativeTrait; |
||
19 | |||
20 | private ?string $value; |
||
21 | |||
22 | public static function makeEmpty(): self |
||
25 | } |
||
26 | |||
27 | public static function customFactory(array $state): self |
||
28 | { |
||
29 | return new self($state['custom']); |
||
30 | } |
||
31 | |||
32 | public function getValue(): ?string |
||
35 | } |
||
36 | |||
37 | private function __construct(string $value = null) |
||
40 | } |
||
41 | } |
||
42 |