Property Attributes
<?php
declare(strict_types=1);
class Abc
{
#[TestAttribute2('testValue2')]
public ?string $test_property_1 = null;
public ?string $test_property_2 = null;
// rest of the codes
}<?php
declare(strict_types=1);
use \AntonDPerera\PHPAttributesReader\AttributesReader;
$class = Abc::class;
$attributes_reader = AttributesReader($class);Available functions for Property Attributes
Last updated