Conditions | 2 |
Paths | 2 |
Total Lines | 25 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function sendmail($mail) |
||
21 | { |
||
22 | # Emailクラスを初期化します。 |
||
23 | $config = []; |
||
24 | $config['protocol'] = 'mail'; |
||
25 | $config['wordwrap'] = FALSE; |
||
26 | $this->email->initialize($config); |
||
27 | |||
28 | # 差出人、あて先、Bcc、件名、本文を設定します。 |
||
29 | $this->email->from($mail['from'], $mail['from_name']); |
||
30 | $this->email->to($mail['to']); |
||
31 | $this->email->bcc($mail['bcc']); |
||
32 | $this->email->subject($mail['subject']); |
||
33 | $this->email->message($mail['body']); |
||
34 | |||
35 | # send()メソッドで実際にメールを送信します。 |
||
36 | if ($this->email->send()) |
||
37 | { |
||
38 | return TRUE; |
||
39 | } |
||
40 | else |
||
41 | { |
||
42 | return FALSE; |
||
43 | } |
||
44 | } |
||
45 | |||
47 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.