1 | <?php |
||
19 | class MailHelper extends Base |
||
20 | { |
||
21 | /** |
||
22 | * Get the mailbox hash from an email address. |
||
23 | * |
||
24 | * @param string $email |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | public function getMailboxHash($email) |
||
39 | |||
40 | /** |
||
41 | * Filter mail subject. |
||
42 | * |
||
43 | * @param string $subject |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | public function filterSubject($subject) |
||
54 | |||
55 | /** |
||
56 | * Get mail sender address. |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getMailSenderAddress() |
||
70 | |||
71 | /** |
||
72 | * Get mail sender address. |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getMailTransport() |
||
86 | } |
||
87 |
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.