Exemplo n.º 1
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     if (is_null($xml)) {
         return;
     }
     if (count($xml->relatedObjects)) {
         if (empty($xml->relatedObjects)) {
             $this->relatedObjects = array();
         } else {
             $this->relatedObjects = \Kaltura\Client\ParseUtils::unmarshalMap($xml->relatedObjects, "KalturaListResponse");
         }
     }
 }