mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 09:42:24 +01:00
added README and fixed abstract method for Specification
This commit is contained in:
parent
73b2ba96fc
commit
645e6e1440
@ -13,9 +13,7 @@ abstract class AbstractSpecification implements SpecificationInterface
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isSatisfiedBy(Item $item)
|
||||
{
|
||||
}
|
||||
abstract public function isSatisfiedBy(Item $item);
|
||||
|
||||
/**
|
||||
* Creates a new logical AND specification
|
||||
|
7
Specification/README.md
Normal file
7
Specification/README.md
Normal file
@ -0,0 +1,7 @@
|
||||
# Specification
|
||||
|
||||
## Purpose
|
||||
|
||||
Builds a clear specification of business rules, where objects can be checked against. The composite specification class has
|
||||
one method called `isSatisfiedBy` that returns either true or false depending on whether the given object satisfies the specification.
|
||||
|
Loading…
x
Reference in New Issue
Block a user