Namespace and ClassPath rewrites
This commit is contained in:
15
Core/Objects/DatabaseEntity/Attribute/MaxLength.class.php
Normal file
15
Core/Objects/DatabaseEntity/Attribute/MaxLength.class.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Core\Objects\DatabaseEntity\Attribute;
|
||||
|
||||
#[\Attribute(\Attribute::TARGET_PROPERTY)] class MaxLength {
|
||||
private int $maxLength;
|
||||
|
||||
function __construct(int $maxLength) {
|
||||
$this->maxLength = $maxLength;
|
||||
}
|
||||
|
||||
public function getValue(): int {
|
||||
return $this->maxLength;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user