dhii / data-container-base
Base functionality for container implementations
Installs: 5 237
Dependents: 12
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: ^5.4 | ^7.0
- dhii/data-container-abstract: ^0.1
- dhii/data-container-interface: ^0.1 | ^0.2
- dhii/exception: ^0.1
- dhii/i18n-helper-base: ^0.1
- dhii/normalization-helper-base: ^0.1
Requires (Dev)
- codeclimate/php-test-reporter: <=0.3.2
- dhii/php-cs-fixer-config: dev-php-5.3
- phpunit/phpunit: ^4.8
- ptrofimov/xpmock: ^1.1
This package is auto-updated.
Last update: 2024-05-07 05:50:04 UTC
README
Details
This package contains base implementations of standard container-related interfaces, which includes exceptions, exception factories, and a small opinionated base implementation that demonstrates simple common usage. Because the standard is an extension of PSR-11, this implementation is compliant with PSR-11.
Classes
AbstractBaseContainer
- A base class for containers. For the simplest implementation, only needs a constructor added.ContainerException
- Represents a problem with a container.NotFoundException
- Occurs when a key cannot be found in a container.
Traits
CreateContainerExceptionCapableTrait
- CreatesContainerException
instances.CreateNotFoundExceptionCapableTrait
- CreatesNotFoundException
instances