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

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;
}
}