public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'objid', 'type' => TType::STRING), 2 => array('var' => 'offerset', 'type' => TType::I64), 3 => array('var' => 'reqlen', 'type' => TType::I32), 4 => array('var' => 'type', 'type' => TType::I32)); } if (is_array($vals)) { if (isset($vals['objid'])) { $this->objid = $vals['objid']; } if (isset($vals['offerset'])) { $this->offerset = $vals['offerset']; } if (isset($vals['reqlen'])) { $this->reqlen = $vals['reqlen']; } if (isset($vals['type'])) { $this->type = $vals['type']; } } }
public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'token', 'type' => TType::STRING), 2 => array('var' => 'filepath', 'type' => TType::STRING), 3 => array('var' => 'offerset', 'type' => TType::I64)); } if (is_array($vals)) { if (isset($vals['token'])) { $this->token = $vals['token']; } if (isset($vals['filepath'])) { $this->filepath = $vals['filepath']; } if (isset($vals['offerset'])) { $this->offerset = $vals['offerset']; } } }