1 | <?php |
||
16 | class EmailLink extends BaseLink |
||
17 | { |
||
18 | private $_email; |
||
19 | |||
20 | /** |
||
21 | * @inheritdoc |
||
22 | */ |
||
23 | public function init() |
||
31 | |||
32 | /** |
||
33 | * Setter method for e-mail. |
||
34 | * |
||
35 | * If no valid email is provided, not value is set. |
||
36 | * |
||
37 | * @param string $email The e-mail which should be used for the mailto link. |
||
38 | */ |
||
39 | public function setEmail($email) |
||
48 | |||
49 | /** |
||
50 | * Getter method for the e-mail. |
||
51 | * |
||
52 | * @return string|boolean Returns the e-mail from the setter method, if mail is not valid false is returned. |
||
53 | */ |
||
54 | public function getEmail() |
||
58 | |||
59 | /** |
||
60 | * @inheritdoc |
||
61 | */ |
||
62 | public function getHref() |
||
66 | |||
67 | /** |
||
68 | * @inheritdoc |
||
69 | */ |
||
70 | public function getTarget() |
||
74 | } |
||
75 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.