for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GoetasWebservices\XML\XSDReader\Schema\Attribute;
use DOMElement;
use GoetasWebservices\XML\XSDReader\SchemaReader;
use GoetasWebservices\XML\XSDReader\Schema\Schema;
class Group implements AttributeItem, AttributeContainer
{
/**
*
* @var Schema
*/
protected $schema;
* @var string|null
protected $doc;
* @var string
protected $name;
* @var AttributeItem[]
protected $attributes = array();
* @param string $name
public function __construct(Schema $schema, $name)
$this->schema = $schema;
$this->name = $name;
}
* @return string
public function getName()
return $this->name;
* @return $this
public function setName($name)
return $this;
public function addAttribute(AttributeItem $attribute)
$this->attributes[] = $attribute;
* @return AttributeItem[]
public function getAttributes()
return $this->attributes;
* @return string|null
public function getDoc()
return $this->doc;
* @param string $doc
public function setDoc($doc)
$this->doc = $doc;
* @return Schema
public function getSchema()
return $this->schema;
* @param string $attr
public static function findSomethingLikeThis(
SchemaReader $useThis,
Schema $schema,
DOMElement $node,
DOMElement $childNode,
AttributeContainer $addToThis
) {
* @var AttributeItem $attribute
$attribute = $useThis->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute("ref"));
$addToThis->addAttribute($attribute);