1 | <?php |
||
19 | class TelephoneLink extends BaseObject implements LinkInterface |
||
20 | { |
||
21 | use LinkTrait; |
||
22 | |||
23 | private $_telephone; |
||
24 | |||
25 | /** |
||
26 | * @inheritdoc |
||
27 | */ |
||
28 | public function init() |
||
36 | |||
37 | /** |
||
38 | * Setter method for telephone number. |
||
39 | * |
||
40 | * If no valid telephone is provided, not value is set. |
||
41 | * |
||
42 | * @param string $telephone The telephone number which should be used for the tel link. |
||
43 | */ |
||
44 | public function setTelephone($telephone) |
||
60 | |||
61 | /** |
||
62 | * Getter method for the telephone. |
||
63 | * |
||
64 | * @return string Returns the telephone from the setter method, if telephone is not valid null is returned. |
||
65 | */ |
||
66 | public function getTelephone() |
||
70 | |||
71 | /** |
||
72 | * @inheritdoc |
||
73 | */ |
||
74 | public function getHref() |
||
86 | |||
87 | /** |
||
88 | * @inheritdoc |
||
89 | */ |
||
90 | public function getTarget() |
||
94 | } |
||
95 |
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.