Skip to content

Add methods to modify reflections #134

@asgrim

Description

@asgrim

It would be pretty cool to be able to modify a reflection, for example:

$newProperty = ReflectionProperty::create('bar', \ReflectionProperty::IS_PRIVATE | \ReflectionProperty::IS_STATIC);
$reflectionClass->addProperty($newProperty);

This is a powerful feature when combined with the ability to export a reflection to PHP code (see #133).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions