Namespace and ClassPath rewrites
This commit is contained in:
17
Core/Objects/DatabaseEntity/Attribute/Enum.class.php
Normal file
17
Core/Objects/DatabaseEntity/Attribute/Enum.class.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Core\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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user