dhii/ container-helper-base
与容器交互的辅助功能。
    v0.1-alpha8
    2018-07-30 09:59 UTC
Requires
- php: ^5.4 | ^7.0
Requires (Dev)
- codeclimate/php-test-reporter: <=0.3.2
- dhii/php-cs-fixer-config: ^0.1
- dhii/stringable-interface: ^0.1
- phpunit/phpunit: ^4.8
- psr/container: ^1.0
- ptrofimov/xpmock: ^1.1
This package is auto-updated.
Last update: 2024-09-07 03:54:17 UTC
README
与容器交互的辅助功能。
特性
- ContainerGetCapableTrait- 允许从任何已知容器表示形式中通过键检索值。类型包括- ContainerInterface、- array、- ArrayAccess和- stdClass。访问不存在的键将抛出- NotFoundExceptionInterface。
- ContainerGetPathCapableTrait- 允许使用传入的路径(分段列表)从嵌套容器中获取数据。
- ContainerHasCapableTrait- 允许从任何已知容器实现中检查值。
- ContainerListHasCapableTrait- 允许在容器列表上检查键。
- ContainerListGetCapableTrait- 允许从容器列表中检索值。
- ContainerSetCapableTrait- 允许在可写容器上设置值。
- ContainerSetPathCapableTrait- 允许使用路径在嵌套容器上设置值。
- ContainerSetManyCapableTrait- 允许在可写容器上设置多个值。
- ContainerUnsetCapableTrait- 允许在可写容器上取消设置值。
- ContainerUnsetManyCapableTrait- 允许在可写容器上取消设置多个值。
- NormalizeContainerCapableTrait- 容器归一化功能。
- NormalizeWritableContainerCapableTrait- 可写容器归一化功能。
- NormalizeKeyCapableTrait- 允许归一化容器键。