__construct() public méthode

Constructor.
public __construct ( DOMNode | string $name, string $value = null, array $attributes = [] )
$name DOMNode | string The tag name of the element
$value string The value of the element
$attributes array The attributes of the element
Exemple #1
0
 /**
  * Constructor.
  *
  * @param \DOMElement $node The node associated with this field
  */
 public function __construct(\DOMElement $node)
 {
     parent::__construct($node);
     $this->name = $node->getAttribute('name');
     $this->initialize();
 }