Ouzo\Db\Query::newInstance PHP 메소드

newInstance() 공개 정적인 메소드

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

Usage Example

예제 #1
0
파일: Query.php 프로젝트: letsdrink/ouzo
 public static function update($attributes)
 {
     return Query::newInstance(QueryType::$UPDATE)->attributes($attributes);
 }