dhii / collections-interface
A highly ISP-compliant collection of interfaces that represent maps and lists.
Installs: 95 892
Dependents: 16
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 2
Requires
- php: ^7.4 | ^8.0
- psr/container: ^1.0 | ^2.0
Requires (Dev)
- phpunit/phpunit: ^9.0
- slevomat/coding-standard: ^6.0
- vimeo/psalm: ^4.6.2 | ^5.0
- 0.4.x-dev
- v0.4.0-alpha2
- v0.4.0-alpha1
- 0.3.x-dev
- dev-develop / 0.3.x-dev
- v0.3.0
- v0.3.0-alpha4
- v0.3.0-alpha3
- v0.3.0-alpha2
- v0.3.0-alpha1
- v0.2
- v0.2-alpha5
- v0.2-alpha4
- v0.2-alpha3
- v0.2-alpha2
- v0.2-alpha1
- v0.1.2
- v0.1.1
- v0.1.0
- dev-maint/build-on-push-and-dispatch
- dev-fix/30-map-factory-wrong-return
- dev-feature/update-project
- dev-master
- dev-fix/container-interface-bc-break
This package is auto-updated.
Last update: 2024-09-21 21:41:01 UTC
README
A highly ISP-compliant collection of interfaces that represent collections.
Interfaces
CountableListInterface
: A list that can be iterated and counted.HasItemCapableInterface
: Something that can be checked for the existence of an item.SetInterface
: A list that can be checked for a value.CountableSetInterface
: A set that can be counted.MapInterface
: An iterable container.CountableMapInterface
: A countable map.ContainerFactoryInterface
: A factory ofContainerInterface
objects.MapFactoryInterface
: A factory ofMapInterface
objects.HasCapableInterface
: Something that can check for a given key.ContainerInterface
: A container implementingHasCapableInterface
.WritableContainerInterface
: A container that can have mappings added and removed.WritableMapInterface
: A map that can have mappings added and removed.WritableSetInterface
: A set that can have items added and removed.ClearableContainerInterface
: A container that can have its members cleared.