public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'name', 'type' => TType::STRING), 2 => array('var' => 'description', 'type' => TType::STRING), 3 => array('var' => 'items', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => 'ConfigItem'))); } if (is_array($vals)) { if (isset($vals['name'])) { $this->name = $vals['name']; } if (isset($vals['description'])) { $this->description = $vals['description']; } if (isset($vals['items'])) { $this->items = $vals['items']; } } }