web-base/core/Objects/DatabaseEntity/Attribute/Enum.class.php

17 lines
291 B
PHP
Raw Normal View History

2022-06-20 19:52:31 +02:00
<?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;
}
}