- WIP on reworking lean-api's visual

This commit is contained in:
Dave Mc Nicoll committed 2024-11-11 15:52:46 +00:00
1 parent d2202066ba
commit cb27ab7974
12 files changed
+92 -1

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
<?php
namespace Lean\Api\Attribute;
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_CLASS)]
class EntityField
{
public function __construct(
public string $description = "",
public bool $mandatory = false,
public ?int $minLength = null,
public ?int $maxLength = null,
public ?string $regexFormat = null,
public mixed $example = null,
) {}
}