rekalogika/direct-property-access
最新稳定版本:1.3.1
Composer 安装命令:
composer require rekalogika/direct-property-access
包简介
Simple implementation of PropertyAccessorInterface that reads and writes directly to the object's properties, bypassing getters and setters.
README 文档
README
Implementation of Symfony's PropertyAccessorInterface that reads and writes
directly to the object's properties, bypassing getters and setters.
Synopsis
use Rekalogika\DirectPropertyAccess\DirectPropertyAccessor; class Person { private string $name = 'Jane'; } $propertyAccessor = new DirectPropertyAccessor(); $name = $propertyAccessor->getValue($person, 'name'); // Jane $propertyAccessor->setValue($person, 'name', 'John');
Documentation
rekalogika.dev/direct-property-access
Credits
This project took inspiration from the following projects.
License
MIT
Contributing
Issues and pull requests should be filed in the GitHub repository rekalogika/direct-property-access.
统计信息
- 总下载量: 10.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-02