From ec88e389cf429f8bd4a9aa01be4fa4464657c795 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 5 Dec 2016 00:08:23 +0000 Subject: [PATCH] Add has method --- src/GmailFilter.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/GmailFilter.php b/src/GmailFilter.php index 91e9887..3af98f2 100644 --- a/src/GmailFilter.php +++ b/src/GmailFilter.php @@ -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. *