ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.Characteristic.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Style\Content;
22
28{
29 protected int$style_id;
30 protected string $type;
31 protected string $characteristic;
32 protected bool $hide;
33 protected array $titles; // key, is lang, value is title
34 protected int $order_nr;
35 protected bool $outdated;
36
37 public function __construct(
38 string $type,
39 string $characteristic,
40 bool $hide,
41 array $titles,
42 int $order_nr = 0,
43 bool $outdated = false
44 ) {
45 $this->type = $type;
46 $this->characteristic = $characteristic;
47 $this->hide = $hide;
48 $this->titles = $titles;
49 $this->order_nr = $order_nr;
50 $this->outdated = $outdated;
51 }
52
53 public function withStyleId(int $style_id): Characteristic
54 {
55 $clone = clone $this;
56 $clone->style_id = $style_id;
57 return $clone;
58 }
59
60 public function getStyleId(): int
61 {
62 return $this->style_id;
63 }
64
65 public function getCharacteristic(): string
66 {
68 }
69
70 public function getType(): string
71 {
72 return $this->type;
73 }
74
75 // Is char hidden?
76 public function isHidden(): bool
77 {
78 return $this->hide;
79 }
80
81 public function getTitles(): array
82 {
83 return $this->titles;
84 }
85
86 public function getOrderNr(): int
87 {
88 return $this->order_nr;
89 }
90
91 public function isOutdated(): bool
92 {
93 return $this->outdated;
94 }
95}
Characteristic (Class) of style.
__construct(string $type, string $characteristic, bool $hide, array $titles, int $order_nr=0, bool $outdated=false)