clivern-imap/src/Core/Message/Body.php

56 lines
886 B
PHP
Raw Normal View History

2017-08-13 15:01:56 +02:00
<?php
/**
* @author clivern <hello@clivern.com>
*/
namespace Clivern\Imap\Core\Message;
/**
* Body Class
*
* @package Clivern\Imap\Core\Message
*/
class Body
{
/**
* @var Connection
*/
protected $connection;
/**
* @var integer
*/
protected $message_number;
/**
* @var integer
*/
protected $message_uid;
/**
* Class Constructor
*
* @param Connection $connection
*/
public function __construct(Connection $connection)
{
$this->connection = $connection;
}
/**
* Config Body
*
* @param integer $message_number
* @param integer $message_uid
* @return Body
*/
public function config($message_number, $message_uid)
{
$this->message_number = $message_number;
$this->message_uid = $message_uid;
return $this;
}
}