| 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 | 58 | public function __construct(Schema $schema, string $name) |
|
| 20 | { |
||
| 21 | 58 | $this->schema = $schema; |
|
| 22 | 58 | $this->name = $name; |
|
| 23 | 58 | } |
|
| 24 | |||
| 25 | 22 | public function getType(): ?Type |
|
| 26 | { |
||
| 27 | 22 | return $this->type; |
|
| 28 | } |
||
| 29 | |||
| 30 | 58 | public function setType(Type $type): void |
|
| 33 | 58 | } |
|
| 34 | } |
||
| 35 |