public function schema(array $schema)
    {
        $this->root = key($schema);

        $this->schema = current($schema);

        return $this;
    }
public function schema(array $schema)
    {
        $this->root = key($schema);

        $this->schema = current($schema);

        return $this;
    }
public function schema ( array $ schema ) { $ this -> root = key ( $ schema ) ; $ this -> schema = current ( $ schema ) ; return $ this ; }
Set the schema.

@param  array  $schema
@return $this
Set the schema .