evseevnn\Cassandra\Protocol\BinaryData::__construct PHP Method

__construct() public method

public __construct ( array $dataType, mixed $value )
$dataType array
$value mixed
    public function __construct(array $dataType, $value)
    {
        $this->type = $dataType['type'];
        $this->value = $value;
        if (isset($dataType['key'])) {
            $this->keyType = $dataType['key'];
        }
        if (isset($dataType['value'])) {
            $this->valueType = $dataType['value'];
        }
    }