1 | <?php |
||
18 | class TelephoneLink extends BaseObject implements LinkInterface |
||
19 | { |
||
20 | use LinkTrait; |
||
21 | |||
22 | private $_telephone; |
||
23 | |||
24 | /** |
||
25 | * Setter method for telephone number. |
||
26 | * |
||
27 | * If no valid telephone is provided, not value is set. |
||
28 | * |
||
29 | * @param string $telephone The telephone number which should be used for the tel link. |
||
30 | */ |
||
31 | public function setTelephone($telephone) |
||
46 | |||
47 | /** |
||
48 | * Getter method for the telephone. |
||
49 | * |
||
50 | * @return string Returns the telephone from the setter method, if telephone is not valid null is returned. |
||
51 | */ |
||
52 | public function getTelephone() |
||
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | */ |
||
60 | public function getHref() |
||
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | public function getTarget() |
||
72 | } |
||
73 |