Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

nested attributes - PHP 8.1

class User
{
    #[AssertAll(
        new AssertNotNull,
        new AssertLength(min: 6))
    ]
    public string $name = '';
}
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #nested #attributes #PHP
ADD COMMENT
Topic
Name
7+6 =