contains() public static méthode

Check that a value contains a given string.
public static contains ( string $string ) : Contains
$string string The sub-string.
Résultat Webmozart\Expression\Constraint\Contains The created expression.
Exemple #1
0
 public function orContains($string)
 {
     return $this->orX(Expr::contains($string));
 }
Exemple #2
0
 public function andContains($string)
 {
     return $this->andX(Expr::contains($string));
 }