mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-09-06 13:35:34 +01:00
Allow for setting multiple subject conditions
This commit is contained in:
parent
5dd94e2852
commit
d916b8e165
2 changed files with 17 additions and 4 deletions
|
@ -74,13 +74,15 @@ class Filter
|
|||
}
|
||||
|
||||
/**
|
||||
* @param string $subject
|
||||
* @param string|array $values
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function subject($subject)
|
||||
public function subject($values)
|
||||
{
|
||||
$this->properties['subject'] = $subject;
|
||||
$this->properties['subject'] = collect($values)->map(function ($value) {
|
||||
return json_encode($value);
|
||||
})->implode('|');
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue