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