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