ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
assSuggestedSolutionLink.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
20 namespace ILIAS\TA\Questions;
21 
28 {
29  protected string $type;
30  protected string $internal_link;
31 
32  public function __construct(
33  int $id,
34  int $question_id,
36  string $import_id,
38  string $type,
39  string $internal_link
40  ) {
41  parent::__construct($id, $question_id, $subquestion_index, $import_id, $last_update);
42  $this->type = $type;
43  $this->internal_link = $internal_link;
44  }
45 
46  public function getType(): string
47  {
48  return $this->type;
49  }
50 
51  public function getStorableValue(): string
52  {
53  return $this->getInternalLink();
54  }
55 
56  public function getInternalLink(): string
57  {
58  return $this->internal_link;
59  }
60  public function withInternalLink(string $internal_link): static
61  {
62  $clone = clone $this;
63  $clone->internal_link = $internal_link;
64  return $clone;
65  }
66 }
__construct(VocabulariesInterface $vocabularies)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...