ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
SuggestedSolutionLink.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
29{
30 protected string $type;
31 protected string $internal_link;
32
33 public function __construct(
34 int $id,
35 int $question_id,
37 string $import_id,
38 \DateTimeImmutable $last_update,
39 string $type,
40 string $internal_link
41 ) {
43 $this->type = $type;
44 $this->internal_link = $internal_link;
45 }
46
47 public function getType(): string
48 {
49 return $this->type;
50 }
51
52 public function getStorableValue(): string
53 {
54 return $this->getInternalLink();
55 }
56
57 public function getInternalLink(): string
58 {
60 }
61 public function withInternalLink(string $internal_link): static
62 {
63 $clone = clone $this;
64 $clone->internal_link = $internal_link;
65 return $clone;
66 }
67}
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc