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