You are here

public function SimpleXMLElement::getAttributeAsPhp in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/SimpleXMLElement.php \Symfony\Component\DependencyInjection\SimpleXMLElement::getAttributeAsPhp()

Converts an attribute as a PHP type.

Parameters

string $name:

Return value

mixed

Overrides SimpleXMLElement::getAttributeAsPhp

1 method overrides SimpleXMLElement::getAttributeAsPhp()
SimpleXMLElement::getAttributeAsPhp in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/SimpleXMLElement.php
Converts an attribute as a PHP type.

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/SimpleXMLElement.php, line 35

Class

SimpleXMLElement
SimpleXMLElement class.

Namespace

Symfony\Component\DependencyInjection

Code

public function getAttributeAsPhp($name) {
  return self::phpize($this[$name]);
}