for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yokai\MessengerBundle;
use Symfony\Component\HttpFoundation\File\File;
/**
* @author Yann Eugoné <[email protected]>
*/
class Delivery
{
* @var string
private $message;
* @var mixed
private $recipient;
* @var array
private $options;
private $subject;
private $body;
private $parameters;
private $attachments;
* @param string $message
* @param mixed $recipient
* @param array $options
* @param string $subject
* @param string $body
* @param array $parameters
* @param File[] $attachments
public function __construct(
$message,
$recipient,
array $options,
$subject,
$body,
array $parameters,
array $attachments
) {
$this->message = $message;
$this->recipient = $recipient;
$this->options = $options;
$this->subject = $subject;
$this->body = $body;
$this->parameters = $parameters;
$this->attachments = $attachments;
}
* @return string
public function getMessage()
return $this->message;
* @return mixed
public function getRecipient()
return $this->recipient;
* @return array
public function getOptions()
return $this->options;
public function getSubject()
return $this->subject;
public function getBody()
return $this->body;
public function getParameters()
return $this->parameters;
* @return File[]
public function getAttachments()
return $this->attachments;