3 declare(strict_types=1);
55 if (!in_array($purpose, [self::PURPOSE_TOOLTIP])) {
56 throw new \InvalidArgumentException(
"Invalid purpose: $purpose");
63 return $this->purpose === self::PURPOSE_TOOLTIP;
68 return new self(self::PURPOSE_TOOLTIP);
A purpose describes the intended use for a certain help text.
__construct(int $purpose)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...