1 | <?php |
||
10 | class LinkTag implements RenderableInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $type; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $rel; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $title; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $href; |
||
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | public function getHref() |
||
39 | |||
40 | /** |
||
41 | * @param string $href |
||
42 | * |
||
43 | * @return $this |
||
44 | */ |
||
45 | public function setHref($href) |
||
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getRel() |
||
59 | |||
60 | /** |
||
61 | * @param string $rel |
||
62 | * |
||
63 | * @return $this |
||
64 | */ |
||
65 | public function setRel($rel) |
||
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | public function getType() |
||
79 | |||
80 | /** |
||
81 | * @param string $type |
||
82 | * |
||
83 | * @return $this |
||
84 | */ |
||
85 | public function setType($type) |
||
91 | |||
92 | /** |
||
93 | * @return string |
||
94 | */ |
||
95 | public function getTitle() |
||
99 | |||
100 | /** |
||
101 | * @param string $title |
||
102 | * |
||
103 | * @return $this |
||
104 | */ |
||
105 | public function setTitle($title) |
||
111 | |||
112 | /** |
||
113 | * Returns a string only if $value isn't null |
||
114 | * |
||
115 | * @param string $format |
||
116 | * @param string $value |
||
117 | * |
||
118 | * @return string |
||
119 | */ |
||
120 | private function sprintfIfNotNull($format, $value) |
||
128 | |||
129 | /** |
||
130 | * @return string |
||
131 | */ |
||
132 | public function render() |
||
141 | |||
142 | /** |
||
143 | * @return string |
||
144 | */ |
||
145 | public function __toString() |
||
149 | } |
||
150 |