public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'key', 'type' => TType::STRING)); } if (is_array($vals)) { if (isset($vals['key'])) { $this->key = $vals['key']; } } }
protected function process_getOption($seqid, $input, $output) { $args = new FacebookService_getOption_args(); $args->read($input); $input->readMessageEnd(); $result = new FacebookService_getOption_result(); $result->success = $this->handler_->getOption($args->key); $output->writeMessageBegin('getOption', TMessageType::REPLY, $seqid); $result->write($output); $output->getTransport()->flush(); }