remi-san / specification
Specification pattern classes
Installs: 63 267
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.3
Requires (Dev)
- fabpot/php-cs-fixer: ^1.10
- henrikbjorn/phpspec-code-coverage: ^2.0
- phpspec/phpspec: ^2.2
- squizlabs/php_codesniffer: ^2.0
This package is auto-updated.
Last update: 2024-11-21 23:06:26 UTC
README
A lib to ease the use the specification pattern.
Your specification classes can extend the AbstractSpecification
class which already implement
the following methods from the Specification
interface:
andSatisfies
orSatisfies
not
You'll have to implement the isSatisfiedBy
method to add the domain logic.