Ouzo\Restrictions::lessThan PHP Method

lessThan() public static method

public static lessThan ( $value )
    public static function lessThan($value)
    {
        return new LessThanRestriction($value);
    }

Usage Example

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