Ouzo\Restrictions::equalTo PHP Method

equalTo() public static method

public static equalTo ( $value )
    public static function equalTo($value)
    {
        return new EqualToRestriction($value);
    }

Usage Example

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