@@ 9-49 (lines=41) @@ | ||
6 | ||
7 | use GoetasWebservices\XML\XSDReader\Schema\Schema; |
|
8 | ||
9 | class Group implements AttributeItem, AttributeContainer |
|
10 | { |
|
11 | use AttributeItemTrait; |
|
12 | use AttributeContainerTrait; |
|
13 | ||
14 | /** |
|
15 | * @var Schema |
|
16 | */ |
|
17 | protected $schema; |
|
18 | ||
19 | /** |
|
20 | * @var string |
|
21 | */ |
|
22 | protected $doc = ''; |
|
23 | ||
24 | public function __construct(Schema $schema, string $name) |
|
25 | { |
|
26 | $this->schema = $schema; |
|
27 | $this->name = $name; |
|
28 | } |
|
29 | ||
30 | public function getDoc(): string |
|
31 | { |
|
32 | return $this->doc; |
|
33 | } |
|
34 | ||
35 | /** |
|
36 | * @return $this |
|
37 | */ |
|
38 | public function setDoc(string $doc): self |
|
39 | { |
|
40 | $this->doc = $doc; |
|
41 | ||
42 | return $this; |
|
43 | } |
|
44 | ||
45 | public function getSchema(): Schema |
|
46 | { |
|
47 | return $this->schema; |
|
48 | } |
|
49 | } |
|
50 |
@@ 10-50 (lines=41) @@ | ||
7 | use GoetasWebservices\XML\XSDReader\Schema\Attribute\AttributeItemTrait; |
|
8 | use GoetasWebservices\XML\XSDReader\Schema\Schema; |
|
9 | ||
10 | class Group implements ElementItem, ElementContainer |
|
11 | { |
|
12 | use AttributeItemTrait; |
|
13 | use ElementContainerTrait; |
|
14 | ||
15 | /** |
|
16 | * @var Schema |
|
17 | */ |
|
18 | protected $schema; |
|
19 | ||
20 | /** |
|
21 | * @var string |
|
22 | */ |
|
23 | protected $doc = ''; |
|
24 | ||
25 | public function __construct(Schema $schema, string $name) |
|
26 | { |
|
27 | $this->schema = $schema; |
|
28 | $this->name = $name; |
|
29 | } |
|
30 | ||
31 | public function getDoc(): string |
|
32 | { |
|
33 | return $this->doc; |
|
34 | } |
|
35 | ||
36 | /** |
|
37 | * @return $this |
|
38 | */ |
|
39 | public function setDoc(string $doc): self |
|
40 | { |
|
41 | $this->doc = $doc; |
|
42 | ||
43 | return $this; |
|
44 | } |
|
45 | ||
46 | public function getSchema(): Schema |
|
47 | { |
|
48 | return $this->schema; |
|
49 | } |
|
50 | } |
|
51 |