public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(0 => array('var' => 'success', 'type' => TType::I32)); } if (is_array($vals)) { if (isset($vals['success'])) { $this->success = $vals['success']; } } }