public function setSQL($sql)
    {
        if ((is_string($sql) && (strlen($sql) <= 0)) || (!is_string($sql) && ($sql !== null))) {
            throw SchemaException::invalidViewSQL($this->getName());
        }

        $this->sql = $sql;
    }
public function setSQL($sql)
    {
        if ((is_string($sql) && (strlen($sql) <= 0)) || (!is_string($sql) && ($sql !== null))) {
            throw SchemaException::invalidViewSQL($this->getName());
        }

        $this->sql = $sql;
    }
public function setSQL ( $ sql ) { if ( ( is_string ( $ sql ) && ( strlen ( $ sql ) <= 0 ) ) || ( ! is_string ( $ sql ) && ( $ sql !== null ) ) ) { throw SchemaException :: invalidViewSQL ( $ this -> getName ( ) ) ; } $ this -> sql = $ sql ; }
Sets the SQL query.

@param string $sql The SQL query.

@throws \Fridge\DBAL\Exception\SchemaException If the sql is not a valid string.
Sets the SQL query .