Drivers\Abstraction\Sql::fetchAs PHP Method

fetchAs() public method

Flag to get return type. The options is: object, array and iterator.
public fetchAs ( string $returnType = 'object' ) : object
$returnType string
return object
    public function fetchAs($returnType = 'object')
    {
        $this->returnType = $returnType;
        return $this;
    }