Slide 28
Slide 28 text
class EmailSender
{
private $mailClient
;
private $address
;
private $text
;
public function __construct($client, $address, $text
)
{
$this->mailClient = $client;
$this->address = $address
;
$this->text = $text
;
}
public function send(
)
{
$this->mailClient->send($this->address, $this->text)
;
}
}
$emailSender = new EmailSender(new AwsSesClient(), 'test@example.com', 'ςετϝʔϧͰ͢Ͷ')
;
$emailSender->send();
༻͢ΔαʔϏεʹؔ͢ΔใΛ
֎͔Βࢦఆʢ֎෦͔Βͷґଘೖʣ