public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'guid', 'type' => TType::STRING), 2 => array('var' => 'name', 'type' => TType::STRING), 3 => array('var' => 'query', 'type' => TType::STRING), 4 => array('var' => 'format', 'type' => TType::I32), 5 => array('var' => 'updateSequenceNum', 'type' => TType::I32), 6 => array('var' => 'scope', 'type' => TType::STRUCT, 'class' => '\\EDAM\\Types\\SavedSearchScope')); } if (is_array($vals)) { if (isset($vals['guid'])) { $this->guid = $vals['guid']; } if (isset($vals['name'])) { $this->name = $vals['name']; } if (isset($vals['query'])) { $this->query = $vals['query']; } if (isset($vals['format'])) { $this->format = $vals['format']; } if (isset($vals['updateSequenceNum'])) { $this->updateSequenceNum = $vals['updateSequenceNum']; } if (isset($vals['scope'])) { $this->scope = $vals['scope']; } } }
public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'guid', 'type' => \TType::STRING), 2 => array('var' => 'name', 'type' => \TType::STRING), 3 => array('var' => 'query', 'type' => \TType::STRING), 4 => array('var' => 'format', 'type' => \TType::I32), 5 => array('var' => 'updateSequenceNum', 'type' => \TType::I32)); } if (is_array($vals)) { if (isset($vals['guid'])) { $this->guid = $vals['guid']; } if (isset($vals['name'])) { $this->name = $vals['name']; } if (isset($vals['query'])) { $this->query = $vals['query']; } if (isset($vals['format'])) { $this->format = $vals['format']; } if (isset($vals['updateSequenceNum'])) { $this->updateSequenceNum = $vals['updateSequenceNum']; } } }