| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 27.78% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class StaticPropertyMetadata extends PropertyMetadata |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var mixed |
||
| 11 | 43 | */ |
|
| 12 | private $value; |
||
| 13 | 43 | ||
| 14 | 43 | /** |
|
| 15 | 43 | * StaticPropertyMetadata constructor. |
|
| 16 | 43 | * |
|
| 17 | 43 | * @param mixed $fieldValue |
|
| 18 | 43 | * @param array $groups |
|
| 19 | 43 | */ |
|
| 20 | public function __construct(string $className, string $fieldName, $fieldValue, array $groups = []) |
||
| 21 | 15 | { |
|
| 22 | $this->class = $className; |
||
| 23 | 15 | $this->name = $fieldName; |
|
| 24 | $this->serializedName = $fieldName; |
||
| 25 | $this->value = $fieldValue; |
||
| 26 | $this->readOnly = true; |
||
| 27 | $this->groups = $groups; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return mixed |
||
| 32 | */ |
||
| 33 | public function getValue() |
||
| 36 | } |
||
| 37 | |||
| 38 | public function setAccessor(string $type, ?string $getter = null, ?string $setter = null): void |
||
| 40 | } |
||
| 41 | |||
| 42 | protected function serializeToArray(): array |
||
| 47 | ]; |
||
| 48 | } |
||
| 49 | |||
| 50 | protected function unserializeFromArray(array $data): void |
||
| 60 |