GDS\Store::__construct PHP Method

__construct() public method

Gateway and Schema/Kind can be supplied on construction
public __construct ( Schema | string | null $kind_schema = null, Gateway $obj_gateway = null )
$kind_schema Schema | string | null
$obj_gateway Gateway
    public function __construct($kind_schema = null, Gateway $obj_gateway = null)
    {
        $this->obj_schema = $this->determineSchema($kind_schema);
        $this->obj_gateway = null === $obj_gateway ? new \GDS\Gateway\ProtoBuf() : $obj_gateway;
        $this->str_last_query = 'SELECT * FROM `' . $this->obj_schema->getKind() . '` ORDER BY __key__ ASC';
    }