From 8072fc53067924b9b41540f5399b21fccade9182 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 12 Jul 2016 21:01:10 +0100 Subject: [PATCH] Update GmailFilter.php --- src/GmailFilter.php | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/src/GmailFilter.php b/src/GmailFilter.php index 5452854..0d6dbab 100644 --- a/src/GmailFilter.php +++ b/src/GmailFilter.php @@ -12,12 +12,31 @@ class GmailFilter */ private $labels = []; + /** + * @var bool + */ private $archive = false; + /** + * @var bool + */ private $spam = false; + /** + * @var bool + */ private $trash = false; + /** + * @var bool + */ + private $neverSpam = false; + + public static function create() + { + return new static(); + } + /** * @return boolean */ @@ -25,8 +44,6 @@ class GmailFilter return $this->trash; } - private $neverSpam = false; - /** * @return mixed */ @@ -62,15 +79,6 @@ class GmailFilter return $this->neverSpam; } - public function __get($name) { - return $this->$name; - } - - public static function create() - { - return new static(); - } - public function contains($value) { return $this->condition('hasTheWord', $value); }