Files
Mangarr/src/Manager/Toolbar/Element/AbstractToolbarElement.php
jerem b4f0811bca Added:
- toolbar refactor
2024-06-29 18:13:43 +02:00

38 lines
725 B
PHP

<?php
namespace App\Manager\Toolbar\Element;
abstract class AbstractToolbarElement implements ToolbarElement
{
protected string $icon;
protected string|array $text;
protected string $action;
public function __construct(string $icon, string|array $text, string $action)
{
$this->icon = $icon;
$this->text = $text;
$this->action = $action;
}
public function getIcon(): string
{
return $this->icon;
}
public function getText(): string|array
{
return $this->text;
}
public function getAction(): string
{
return $this->action;
}
public function getAdditionalProperties(): array
{
return [];
}
}