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); }