| 1 | <?php |
||
| 10 | final class CommunicatorCriterion implements CriterionInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $name; |
||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $query; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * RecipientCriterium constructor. |
||
| 23 | * @param string $name |
||
| 24 | * @param string $query |
||
| 25 | */ |
||
| 26 | 5 | private function __construct(string $name, string $query) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | 5 | public function __toString(): string |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $query |
||
| 42 | * @return CommunicatorCriterion |
||
| 43 | */ |
||
| 44 | 2 | public static function to(string $query): self |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @param string $query |
||
| 51 | * @return CommunicatorCriterion |
||
| 52 | */ |
||
| 53 | 1 | public static function cc(string $query): self |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @param string $query |
||
| 60 | * @return CommunicatorCriterion |
||
| 61 | */ |
||
| 62 | 1 | public static function bcc(string $query): self |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @param string $query |
||
| 69 | * @return CommunicatorCriterion |
||
| 70 | */ |
||
| 71 | 1 | public static function from(string $query): self |
|
| 75 | } |