Ouzo\Restrictions::notEqualTo PHP Method

notEqualTo() public static method

public static notEqualTo ( $value )
    public static function notEqualTo($value)
    {
        return new NotEqualToRestriction($value);
    }

Usage Example

 /**
  * @test
  */
 public function shouldCreateProperSqlForEmptyString()
 {
     //given
     $restriction = Restrictions::notEqualTo('');
     //when
     $sql = $restriction->toSql('key');
     //then
     $this->assertEquals('key <> ?', $sql);
     $this->assertEquals(array(''), $restriction->getValues());
 }