web-base/Core/Objects/DatabaseEntity/Attribute/ExtendingEnum.class.php
2022-11-27 12:33:27 +01:00

18 lines
370 B
PHP

<?php
namespace Core\Objects\DatabaseEntity\Attribute;
#[\Attribute(\Attribute::TARGET_PROPERTY)]
class ExtendingEnum extends EnumArr {
private array $mappings;
public function __construct(array $values) {
parent::__construct(array_keys($values));
$this->mappings = $values;
}
public function getMappings(): array {
return $this->mappings;
}
}