mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-01-22 20:17:31 +00:00
Add has method
This commit is contained in:
parent
a62bebf241
commit
ec88e389cf
|
@ -91,6 +91,18 @@ class GmailFilter
|
|||
return $this->condition('hasTheWord', $value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Condition based on words within the email.
|
||||
*
|
||||
* @param string $value
|
||||
* The value to compare against.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function has($value) {
|
||||
return $this->contains($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Condition based on the subject.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue