Ouzo\Db\Query::count PHP Method

count() public static method

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

Usage Example

Beispiel #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