From 58acfbb4a8d4f16eac965806316fa69a1f68090c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 12 Jul 2016 21:05:37 +0100 Subject: [PATCH] Update docblocks --- src/GmailFilter.php | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/GmailFilter.php b/src/GmailFilter.php index 0d6dbab..e7d668e 100644 --- a/src/GmailFilter.php +++ b/src/GmailFilter.php @@ -45,14 +45,14 @@ class GmailFilter } /** - * @return mixed + * @return array */ public function getConditions() { return $this->conditions; } /** - * @return mixed + * @return array */ public function getLabels() { return $this->labels; @@ -79,10 +79,26 @@ class GmailFilter return $this->neverSpam; } + /** + * Condition based on words within the email. + * + * @param string $value + * The value to compare against. + * + * @return $this + */ public function contains($value) { return $this->condition('hasTheWord', $value); } + /** + * Condition based on the subject. + * + * @param string $value + * The value to compare against. + * + * @return $this + */ public function subject($value) { return $this->condition('subject', $value); }