改名
This commit is contained in:
@@ -169,11 +169,12 @@ class Annotation extends Component
|
|||||||
foreach ($attributes as $attribute) {
|
foreach ($attributes as $attribute) {
|
||||||
/** @var IAnnotation $annotation */
|
/** @var IAnnotation $annotation */
|
||||||
$annotation = $attribute->newInstance()->execute([$object, $value->getName()]);
|
$annotation = $attribute->newInstance()->execute([$object, $value->getName()]);
|
||||||
if ($value->isStatic()) {
|
// if ($value->isStatic()) {
|
||||||
$name = $value->getName();
|
// $name = $value->getName();
|
||||||
|
//
|
||||||
$object::$name = $annotation;
|
// $object::$name = $annotation;
|
||||||
} else if ($value->isPublic()) {
|
// } else
|
||||||
|
if ($value->isPublic()) {
|
||||||
$object->{$value->getName()} = $annotation;
|
$object->{$value->getName()} = $annotation;
|
||||||
} else {
|
} else {
|
||||||
$name = 'set' . ucfirst($value->getName());
|
$name = 'set' . ucfirst($value->getName());
|
||||||
|
|||||||
Reference in New Issue
Block a user