Ouzo\Restrictions::greaterThan PHP Method

greaterThan() public static method

public static greaterThan ( $value )
    public static function greaterThan($value)
    {
        return new GreaterThanRestriction($value);
    }

Usage Example

 /**
  * @test
  */
 public function shouldCreateProperSql()
 {
     //given
     $restriction = Restrictions::greaterThan(5);
     //when
     $sql = $restriction->toSql('key');
     //then
     $this->assertEquals('key > ?', $sql);
     $this->assertEquals(array(5), $restriction->getValues());
 }
All Usage Examples Of Ouzo\Restrictions::greaterThan