ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
OptionTranslationImplementation.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
26{
27 public function __construct(
28 protected string $language,
29 protected string $value,
30 protected bool $is_persisted = false
31 ) {
32 }
33
34 public function isPersisted(): bool
35 {
36 return $this->is_persisted;
37 }
38
39 protected function getSubData(): \Generator
40 {
41 yield from [];
42 }
43
44 public function language(): string
45 {
46 return $this->language;
47 }
48
49 public function getValue(): string
50 {
51 return $this->value;
52 }
53
54 public function setValue(string $value): void
55 {
56 if ($this->value === $value) {
57 return;
58 }
59 $this->value = $value;
60 $this->markAsChanged();
61 }
62}
__construct(protected string $language, protected string $value, protected bool $is_persisted=false)