mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-06-02 07:00:19 +01:00
Add labelAndArchive method
This commit is contained in:
parent
30d83f7682
commit
9a0d4f8a90
1 changed files with 15 additions and 0 deletions
|
@ -117,6 +117,21 @@ class GmailFilter
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Label and archive a message.
|
||||
*
|
||||
* @param string $label
|
||||
* The label to assign.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function labelAndArchive($label)
|
||||
{
|
||||
$this->label($label)->archive();
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue