15 lines
291 B
PHP
15 lines
291 B
PHP
<?php
|
|
|
|
namespace 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;
|
|
}
|
|
} |