mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-01-22 20:17:31 +00:00
Update GmailFilter.php
This commit is contained in:
parent
d56e7c6620
commit
8072fc5306
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue