Hypertable_ThriftGen_Cell::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( $vals = null )
    public function __construct($vals = null)
    {
        if (!isset(self::$_TSPEC)) {
            self::$_TSPEC = array(1 => array('var' => 'key', 'type' => TType::STRUCT, 'class' => 'Hypertable_ThriftGen_Key'), 2 => array('var' => 'value', 'type' => TType::STRING));
        }
        if (is_array($vals)) {
            if (isset($vals['key'])) {
                $this->key = $vals['key'];
            }
            if (isset($vals['value'])) {
                $this->value = $vals['value'];
            }
        }
    }