Update GmailFilter.php

This commit is contained in:
Oliver Davies 2016-07-12 21:01:10 +01:00
parent d56e7c6620
commit 8072fc5306

View file

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