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(), '
[email protected]', 'ςετϝʔϧͰ͢Ͷ')
;
$emailSender->send();
&NBJM4FOEFSͷґଘΛ
ΞϓϦέʔγϣϯଆ͔Β
ೖʢ*OKFDUJPOʣ͍ͯ͠Δ