ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Text.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
29{
30 public function __construct(
31 IdentificationInterface $provider_identification,
32 private string $text,
33 ) {
34 parent::__construct($provider_identification);
35 }
36
37 public function getText(): string
38 {
39 return $this->text;
40 }
41
42 public function withText(string $text): self
43 {
44 $clone = clone $this;
45 $clone->text = $text;
46 return $clone;
47 }
48
49 public function isTop(): bool
50 {
51 return false;
52 }
53
54}
__construct(IdentificationInterface $provider_identification, private string $text,)
Definition: Text.php:30
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc