| Total Complexity | 3 | 
| Total Lines | 24 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php | ||
| 9 | abstract class Item implements SchemaItem | ||
| 10 | { | ||
| 11 | use NamedItemTrait; | ||
| 12 | use SchemaItemTrait; | ||
| 13 | |||
| 14 | /** | ||
| 15 | * @var Type|null | ||
| 16 | */ | ||
| 17 | protected $type; | ||
| 18 | |||
| 19 | 74 | public function __construct(Schema $schema, string $name) | |
| 20 |     { | ||
| 21 | 74 | $this->schema = $schema; | |
| 22 | 74 | $this->name = $name; | |
| 23 | 74 | } | |
| 24 | |||
| 25 | 23 | public function getType(): ?Type | |
| 26 |     { | ||
| 27 | 23 | return $this->type; | |
| 28 | } | ||
| 29 | |||
| 30 | 74 | public function setType(Type $type): void | |
| 33 | 74 | } | |
| 34 | } | ||
| 35 |