clivern-imap/src/Core/Search/Condition/UnKeyword.php

42 lines
633 B
PHP
Raw Normal View History

2017-08-12 01:25:32 +02:00
<?php
/*
* This file is part of the Imap PHP package.
* (c) Clivern <hello@clivern.com>
2017-08-12 01:25:32 +02:00
*/
namespace Clivern\Imap\Core\Search\Condition;
use Clivern\Imap\Core\Search\Contract\Condition;
/**
* UnKeyword Class.
2017-08-12 01:25:32 +02:00
*/
class UnKeyword implements Condition
{
2017-08-13 13:36:19 +02:00
/**
* @var string
*/
protected $data;
2017-08-12 01:25:32 +02:00
2017-08-13 13:36:19 +02:00
/**
* Class Constructor.
2017-08-13 13:36:19 +02:00
*
* @param string $data
*/
public function __construct($data)
{
$this->data = $data;
}
2017-08-12 01:25:32 +02:00
2017-08-13 13:36:19 +02:00
/**
* Query String.
2017-08-13 13:36:19 +02:00
*
* @return string
*/
public function __toString()
{
return "UNKEYWORD \"{$this->data}\"";
}
}