web-base/core/Objects/DatabaseEntity/Attribute/Enum.class.php
2022-06-20 19:52:31 +02:00

17 lines
291 B
PHP

<?php
namespace Objects\DatabaseEntity\Attribute;
#[\Attribute(\Attribute::TARGET_PROPERTY)] class Enum {
private array $values;
public function __construct(string ...$values) {
$this->values = $values;
}
public function getValues(): array {
return $this->values;
}
}