mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-03-13 05:26:57 +00:00
31 lines
543 B
PHP
31 lines
543 B
PHP
<?php
|
|
|
|
namespace Opdavies\GmailFilterBuilder\Model;
|
|
|
|
use Tightenco\Collect\Support\Collection;
|
|
|
|
class FilterCondition
|
|
{
|
|
/** @var string */
|
|
private $property;
|
|
|
|
/** @var Collection */
|
|
private $values;
|
|
|
|
public function __construct(string $property, $values)
|
|
{
|
|
$this->property = $property;
|
|
$this->values = collect($values);
|
|
}
|
|
|
|
public function getProperty(): string
|
|
{
|
|
return $this->property;
|
|
}
|
|
|
|
public function getValues(): Collection
|
|
{
|
|
return $this->values;
|
|
}
|
|
}
|