mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-05-06 04:16:15 +01:00
Add has method
This commit is contained in:
parent
a62bebf241
commit
ec88e389cf
1 changed files with 12 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue