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