19 declare(strict_types=1);
108 $clone = clone $this;
124 $clone = clone($this);
125 $clone->visiblility_callable = $is_visible;
132 if (isset($this->is_visible_static)) {
136 return $this->is_visible_static =
false;
138 if (is_callable($this->visiblility_callable)) {
141 $value = $callable();
143 return $this->is_visible_static = $value;
146 return $this->is_visible_static =
true;
151 if (is_callable($this->available_callable)) {
162 $clone = clone($this);
163 $clone->available_callable = $is_available;
170 $clone = clone($this);
171 $clone->denotation = self::DENOTATION_NEUTRAL;
178 $clone = clone($this);
179 $clone->denotation = self::DENOTATION_IMPORTANT;
186 $clone = clone($this);
187 $clone->denotation = self::DENOTATION_BREAKING;
194 return $this->denotation ?? self::DENOTATION_NEUTRAL;
withVisibilityCallable(callable $is_visible)
Class AbstractBaseNotification.
const DENOTATION_BREAKING
const DENOTATION_IMPORTANT
withImportantDenotation()
Class AdministrativeNotificationRenderer.
getRenderer(UIFactory $factory)
withSummary(string $summary)
withAvailableCallable(callable $is_available)
Interface NotificationRenderer Every Notification should have a renderer, if you won't provide on in ...