Bin\rpc\Message::__construct PHP Method

__construct() public method

public __construct ( $vals = null )
    public function __construct($vals = null)
    {
        if (!isset(self::$_TSPEC)) {
            self::$_TSPEC = array(1 => array('var' => 'send_uid', 'type' => TType::I64), 2 => array('var' => 'recv_uid', 'type' => TType::I64), 3 => array('var' => 'channel_id', 'type' => TType::I64), 4 => array('var' => 'name', 'type' => TType::STRING), 5 => array('var' => 'result', 'type' => TType::STRING));
        }
        if (is_array($vals)) {
            if (isset($vals['send_uid'])) {
                $this->send_uid = $vals['send_uid'];
            }
            if (isset($vals['recv_uid'])) {
                $this->recv_uid = $vals['recv_uid'];
            }
            if (isset($vals['channel_id'])) {
                $this->channel_id = $vals['channel_id'];
            }
            if (isset($vals['name'])) {
                $this->name = $vals['name'];
            }
            if (isset($vals['result'])) {
                $this->result = $vals['result'];
            }
        }
    }