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

15 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 MaxLength {
private int $maxLength;
function __construct(int $maxLength) {
$this->maxLength = $maxLength;
}
public function getValue(): int {
return $this->maxLength;
}
}