public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->policyId)) { $this->policyId = (int) $xml->policyId; } }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->flavorParamsIds = (string) $xml->flavorParamsIds; if (!empty($xml->isBlockedList)) { $this->isBlockedList = true; } }