Skip to content

refactor PhpAttribute #1

@sagittaracc

Description

@sagittaracc

Need to refactor the PhpAttribute class - https://github.com/sagittaracc/decorator/blob/main/src/PhpAttribute.php

It has getMethod and getProperty methods which is not quite obvious

Need to create a new class so called AttributeMapper which has both of those methods

Use case would be like this

AttributeMapper::getMethodByAttribute($object, $attribute); // callable
AttributeMapper::getPropertyByAttribute($object, $attribute); // property name

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions