42 lines
545 B
PHP
42 lines
545 B
PHP
|
<?php
|
||
|
/**
|
||
|
* @author clivern <hello@clivern.com>
|
||
|
*/
|
||
|
|
||
|
namespace Clivern\Imap\Core\Search\Condition;
|
||
|
|
||
|
use Clivern\Imap\Core\Search\Contract\Condition;
|
||
|
|
||
|
/**
|
||
|
* To Class
|
||
|
*
|
||
|
* @package Clivern\Imap\Core\Search\Condition
|
||
|
*/
|
||
|
class To implements Condition
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* @var string
|
||
|
*/
|
||
|
protected $data;
|
||
|
|
||
|
/**
|
||
|
* Class Constructor
|
||
|
*
|
||
|
* @param string $data
|
||
|
*/
|
||
|
public function __construct($data)
|
||
|
{
|
||
|
$this->data = $data;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Query String
|
||
|
*
|
||
|
* @return string
|
||
|
*/
|
||
|
public function __toString()
|
||
|
{
|
||
|
return "TO \"{$this->data}\"";
|
||
|
}
|
||
|
}
|