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

count() 공개 정적인 메소드

public static count ( )
    public static function count()
    {
        return new Query(QueryType::$COUNT);
    }

Usage Example

예제 #1
0
 /**
  * @test
  */
 public function shouldCreateSelectCountQuery()
 {
     // when
     $query = Query::count();
     // then
     $this->assertEquals(QueryType::$COUNT, $query->type);
 }
All Usage Examples Of Ouzo\Db\Query::count