mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-09-03 20:25:33 +01:00
Add more methods
This commit is contained in:
parent
0594f9f0de
commit
d5d9f72375
2 changed files with 94 additions and 0 deletions
|
@ -67,6 +67,48 @@ class Filter
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function read()
|
||||
{
|
||||
$this->properties['markAsRead'] = 'true';
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function star()
|
||||
{
|
||||
$this->properties['shouldStar'] = 'true';
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function forward($to)
|
||||
{
|
||||
$this->properties['forwardTo'] = $to;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function important()
|
||||
{
|
||||
$this->properties['shouldAlwaysMarkAsImportant'] = 'true';
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function notImportant()
|
||||
{
|
||||
$this->properties['shouldNeverMarkAsImportant'] = 'true';
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function categorise($category)
|
||||
{
|
||||
$this->properties['smartLabelToApply'] = $category;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getProperties()
|
||||
{
|
||||
return $this->properties;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue