function ManifestElement::getAttributeValue
13 calls to ManifestElement::getAttributeValue()
- AuthorElement::getEmail in vendor/
phar-io/ manifest/ src/ xml/ AuthorElement.php - AuthorElement::getName in vendor/
phar-io/ manifest/ src/ xml/ AuthorElement.php - ComponentElement::getName in vendor/
phar-io/ manifest/ src/ xml/ ComponentElement.php - ComponentElement::getVersion in vendor/
phar-io/ manifest/ src/ xml/ ComponentElement.php - ContainsElement::getName in vendor/
phar-io/ manifest/ src/ xml/ ContainsElement.php
File
-
vendor/
phar-io/ manifest/ src/ xml/ ManifestElement.php, line 27
Class
Namespace
PharIo\ManifestCode
protected function getAttributeValue(string $name) : string {
if (!$this->element
->hasAttribute($name)) {
throw new ManifestElementException(sprintf('Attribute %s not set on element %s', $name, $this->element->localName));
}
return $this->element
->getAttribute($name);
}