Add labelAndArchive method

This commit is contained in:
Oliver Davies 2016-09-24 19:57:11 +01:00
parent 30d83f7682
commit 9a0d4f8a90

View file

@ -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
*/