The doc comment array<non-empty-string, mixed> at position 2 could not be parsed: Unknown type name 'non-empty-string' at position 2 in array<non-empty-string, mixed>.
Loading history...
13
*/
14
public function __construct(
15
private TargetInterface $target,
16
private array $arguments = [],
17
array $attributes = [],
18
) {
19
$this->attributes = $attributes;
20
}
21
22
public function getTarget(): TargetInterface
23
{
24
return $this->target;
25
}
26
27
public function getArguments(): array
28
{
29
return $this->arguments;
30
}
31
32
public function withTarget(TargetInterface $target): static
33
{
34
$clone = clone $this;
35
$clone->target = $target;
36
return $clone;
37
}
38
39
public function withArguments(array $arguments): static