| Total Complexity | 6 | 
| Total Lines | 64 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 10 | final class PropertyMetadata  | 
            ||
| 11 | { | 
            ||
| 12 | /** @var string */  | 
            ||
| 13 | private $name;  | 
            ||
| 14 | |||
| 15 | /** @var array<string, string>|null */  | 
            ||
| 16 | private $type;  | 
            ||
| 17 | |||
| 18 | /** @var bool */  | 
            ||
| 19 | private $required;  | 
            ||
| 20 | |||
| 21 | /** @var bool */  | 
            ||
| 22 | private $default;  | 
            ||
| 23 | |||
| 24 | /** @var mixed[]|null */  | 
            ||
| 25 | private $enum;  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * @param array<string, string> $type  | 
            ||
| 29 | * @param mixed[]|null $enum  | 
            ||
| 30 | */  | 
            ||
| 31 | 330 | public function __construct(  | 
            |
| 32 | string $name,  | 
            ||
| 33 | ?array $type,  | 
            ||
| 34 | bool $required = false,  | 
            ||
| 35 | bool $default = false,  | 
            ||
| 36 | ?array $enum = null  | 
            ||
| 37 |     ) { | 
            ||
| 38 | 330 | $this->name = $name;  | 
            |
| 39 | 330 | $this->type = $type;  | 
            |
| 40 | 330 | $this->required = $required;  | 
            |
| 41 | 330 | $this->default = $default;  | 
            |
| 42 | 330 | $this->enum = $enum;  | 
            |
| 43 | 330 | }  | 
            |
| 44 | |||
| 45 | 330 | public function getName() : string  | 
            |
| 48 | }  | 
            ||
| 49 | |||
| 50 | 198 | public function isRequired() : bool  | 
            |
| 51 |     { | 
            ||
| 52 | 198 | return $this->required;  | 
            |
| 53 | }  | 
            ||
| 54 | |||
| 55 | /**  | 
            ||
| 56 | * @return array<string, string>|null  | 
            ||
| 57 | */  | 
            ||
| 58 | 229 | public function getType() : ?array  | 
            |
| 59 |     { | 
            ||
| 60 | 229 | return $this->type;  | 
            |
| 61 | }  | 
            ||
| 62 | |||
| 63 | 330 | public function isDefault() : bool  | 
            |
| 66 | }  | 
            ||
| 67 | |||
| 68 | /**  | 
            ||
| 69 | * @return mixed[]|null  | 
            ||
| 70 | */  | 
            ||
| 71 | 229 | public function getEnum() : ?array  | 
            |
| 74 | }  | 
            ||
| 75 | }  | 
            ||
| 76 |