Ouzo\Restrictions::like PHP Method

like() public static method

public static like ( $value )
    public static function like($value)
    {
        return new LikeRestriction($value);
    }

Usage Example

Example #1
0
 /**
  * @test
  */
 public function shouldReturnNothingUsingLikeRestrictionWhenRestrictionDoesNotMatch()
 {
     //given
     Product::create(array('name' => 'tech'));
     //when
     $loadedProduct = Product::where(array('name' => Restrictions::like('te')))->fetch();
     //then
     $this->assertNull($loadedProduct);
 }
All Usage Examples Of Ouzo\Restrictions::like