ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Custom.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
25class Custom extends Icon implements C\Symbol\Icon\Custom
26{
27 private string $icon_path;
28
29 public function __construct(string $icon_path, string $label, string $size, bool $is_disabled)
30 {
31 $this->checkArgIsElement(
32 "size",
33 $size,
34 self::$possible_sizes,
35 implode('/', self::$possible_sizes)
36 );
37 $this->name = 'custom';
38 $this->icon_path = $icon_path;
39 $this->label = $label;
40 $this->size = $size;
41 $this->is_disabled = $is_disabled;
42 }
43
47 public function getIconPath(): string
48 {
49 return $this->icon_path;
50 }
51}
__construct(string $icon_path, string $label, string $size, bool $is_disabled)
Definition: Custom.php:29