We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3953f0a commit 242ad86Copy full SHA for 242ad86
Link.php
@@ -141,8 +141,6 @@ class Link implements EvolvableLinkInterface
141
// Extra relations
142
public const REL_MERCURE = 'mercure';
143
144
- private string $href = '';
145
-
146
/**
147
* @var string[]
148
*/
@@ -153,12 +151,13 @@ class Link implements EvolvableLinkInterface
153
151
154
152
private array $attributes = [];
155
156
- public function __construct(?string $rel = null, string $href = '')
157
- {
+ public function __construct(
+ ?string $rel = null,
+ private string $href = '',
+ ) {
158
if (null !== $rel) {
159
$this->rel[$rel] = $rel;
160
}
161
- $this->href = $href;
162
163
164
public function getHref(): string
0 commit comments