| 1 | <?php |
||
| 14 | class Link implements OutputInterface, AppendAttributeInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Language code for the page. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $hrefLang; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Location of the translated page. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $href; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Link constructor. |
||
| 32 | * |
||
| 33 | * @param string $hrefLang |
||
| 34 | * @param string $href |
||
| 35 | */ |
||
| 36 | public function __construct($hrefLang, $href) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function generateXML(XMLWriter $XMLWriter) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | public function appendAttributeToCollectionXML(XMLWriter $XMLWriter) |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Location of the translated page. |
||
| 64 | * |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | public function getHref() |
||
| 71 | |||
| 72 | /** |
||
| 73 | * Language code for the page. |
||
| 74 | * |
||
| 75 | * @return string |
||
| 76 | */ |
||
| 77 | public function getHrefLang() |
||
| 81 | } |
||
| 82 |