mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-09-07 22:15:34 +01: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;
|
||
|
}
|
||
|
}
|