Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 81.82% |
Changes | 0 |
1 | <?php |
||
5 | abstract class AbstractNamedGroupItem |
||
6 | { |
||
7 | use NamedItemTrait; |
||
8 | |||
9 | /** |
||
10 | * @var Schema |
||
11 | */ |
||
12 | protected $schema; |
||
13 | |||
14 | /** |
||
15 | * @var string|null |
||
16 | */ |
||
17 | protected $doc; |
||
18 | |||
19 | /** |
||
20 | * @param string $name |
||
21 | */ |
||
22 | 45 | public function __construct(Schema $schema, $name) |
|
23 | { |
||
24 | 45 | $this->schema = $schema; |
|
25 | 45 | $this->name = $name; |
|
26 | 45 | } |
|
27 | |||
28 | /** |
||
29 | * @return string|null |
||
30 | */ |
||
31 | public function getDoc() |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param string $doc |
||
38 | * |
||
39 | * @return $this |
||
40 | */ |
||
41 | 45 | public function setDoc($doc) |
|
42 | { |
||
43 | 45 | $this->doc = $doc; |
|
44 | |||
45 | 45 | return $this; |
|
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return Schema |
||
50 | */ |
||
51 | 45 | public function getSchema() |
|
54 | } |
||
55 | } |
||
56 |