ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
SuggestedSolutionLink.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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,
39  string $type,
40  string $internal_link
41  ) {
42  parent::__construct($id, $question_id, $subquestion_index, $import_id, $last_update);
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  {
59  return $this->internal_link;
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)