dhii/data-key-value-aware-abstract

Traits for objects that are aware of a key, a value, or both.

Installs: 8 448

Dependents: 5

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

pkg:composer/dhii/data-key-value-aware-abstract

v0.1-alpha4 2018-02-11 15:58 UTC

This package is auto-updated.

Last update: 2025-10-07 05:19:51 UTC


README

Build Status Code Climate Test Coverage Latest Stable Version Latest Unstable Version This package complies with Dhii standards

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 or null, 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.