Ouzo\Db\Query::newInstance PHP Method

newInstance() public static method

public static newInstance ( $type = null )
    public static function newInstance($type = null)
    {
        return new Query($type);
    }

Usage Example

Esempio n. 1
0
 public static function update($attributes)
 {
     return Query::newInstance(QueryType::$UPDATE)->attributes($attributes);
 }