Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | abstract class AbstractNamedGroupItem |
||
6 | { |
||
7 | use NamedItemTrait; |
||
8 | /** |
||
9 | * @var Schema |
||
10 | */ |
||
11 | protected $schema; |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $doc = ''; |
||
17 | |||
18 | public function __construct(Schema $schema, string $name) |
||
19 | { |
||
20 | $this->schema = $schema; |
||
21 | $this->name = $name; |
||
22 | } |
||
23 | |||
24 | public function getDoc(): string |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return $this |
||
31 | */ |
||
32 | public function setDoc(string $doc): self |
||
33 | { |
||
34 | $this->doc = $doc; |
||
35 | |||
36 | return $this; |
||
37 | } |
||
38 | |||
39 | public function getSchema(): Schema |
||
42 | } |
||
43 | } |
||
44 |