public function __construct(\DOMElement $xml = null) { if ($xml === null) { return; } $this->scope = $xml->textContent; $this->regexp = Utils::parseBoolean($xml, 'regexp', false); }