public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->entryId = (string) $xml->entryId; }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->entryId = (string) $xml->entryId; if (count($xml->followEntryRedirect)) { $this->followEntryRedirect = (int) $xml->followEntryRedirect; } }