| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | abstract class Item implements SchemaItem |
||
| 11 | { |
||
| 12 | use AttributeItemTrait; |
||
| 13 | use SchemaItemTrait; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var Type|null |
||
| 17 | */ |
||
| 18 | protected $type; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $name |
||
| 22 | */ |
||
| 23 | 135 | public function __construct(Schema $schema, $name) |
|
| 24 | { |
||
| 25 | 135 | $this->schema = $schema; |
|
| 26 | 135 | $this->name = $name; |
|
| 27 | 135 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * |
||
| 31 | * @return Type|null |
||
| 32 | */ |
||
| 33 | 63 | public function getType() |
|
| 34 | { |
||
| 35 | 63 | return $this->type; |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return $this |
||
| 40 | */ |
||
| 41 | 135 | public function setType(Type $type) |
|
| 45 | } |
||
| 46 | } |
||
| 47 |