Skip to content

Commit

Permalink
Removed getters from interface.
Browse files Browse the repository at this point in the history
Removed getters from interface because they are never being used, we just set the data and send the mail.
  • Loading branch information
GeoffreyDijkstra committed Mar 31, 2020
1 parent 39a45c9 commit 8464b62
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions src/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,95 +9,55 @@
*/
interface Mail
{
/**
* @return Recipient[]
*/
public function getTo(): array;

/**
* @param Recipient $recipient
*
* @return Mail
*/
public function addTo(Recipient $recipient): Mail;

/**
* @return Recipient[]
*/
public function getCc(): array;

/**
* @param Recipient $recipient
*
* @return Mail
*/
public function addCc(Recipient $recipient): Mail;

/**
* @return Recipient[]
*/
public function getBcc(): array;

/**
* @param Recipient $recipient
*
* @return Mail
*/
public function addBcc(Recipient $recipient): Mail;

/**
* @return Recipient
*/
public function getFrom(): Recipient;

/**
* @param Recipient $recipient
*
* @return Mail
*/
public function setFrom(Recipient $recipient): Mail;

/**
* @return Recipient
*/
public function getReplyTo(): Recipient;

/**
* @param Recipient $recipient
*
* @return Mail
*/
public function setReplyTo(Recipient $recipient): Mail;

/**
* @return string
*/
public function getSubject(): string;

/**
* @param string $subject
*
* @return Mail
*/
public function setSubject(string $subject): Mail;

/**
* @return Attachment[]
*/
public function getAttachments(): array;

/**
* @param Attachment $attachment
*
* @return Mail
*/
public function addAttachment(Attachment $attachment): Mail;

/**
* @return string
*/
public function getMessage(): string;

/**
* @param string $message
*
Expand Down

0 comments on commit 8464b62

Please sign in to comment.