dhii / data-key-value-aware-abstract
Traits for objects that are aware of a key, a value, or both.
Package info
github.com/Dhii/data-key-value-aware-abstract
pkg:composer/dhii/data-key-value-aware-abstract
v0.1-alpha4
2018-02-11 15:58 UTC
Requires
- php: ^5.4 | ^7.0
Requires (Dev)
- codeclimate/php-test-reporter: <=0.3.2
- dhii/php-cs-fixer-config: dev-php-5.3
- dhii/stringable-interface: ^0.1
- phpunit/phpunit: ^4.8
- ptrofimov/xpmock: ^1.1
This package is auto-updated.
Last update: 2026-03-07 06:21:31 UTC
README
Traits for objects that are aware of a key, a value, or both.
Traits
KeyAwareTrait- Allows storage and retrieval of a key. The key can be any scalar value, in which case it will be normalized to string, or a Stringable ornull, in which case it will be preserved.ValueAwareTrait- Allows storage and retrieval of a value. A value can be anything.NameAwareTrait- Allows storage and retrieval of a name. A name is a string or stringable that identifies something in a narrow scope.