📜  嵌套属性 - PHP 8.1 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:19.330000             🧑  作者: Mango

代码示例1
class User
{
    #[\Assert\All(
        new \Assert\NotNull,
        new \Assert\Length(min: 6))
    ]
    public string $name = '';
}