dhii / data-key-value-aware-abstract
Traits for objects that are aware of a key, a value, or both.
Installs: 8 408
Dependents: 5
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
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: 2024-12-07 03:41:23 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.