added README and fixed abstract method for Specification

This commit is contained in:
Dominik Liebler 2013-12-06 10:19:44 +01:00
parent 73b2ba96fc
commit 645e6e1440
2 changed files with 8 additions and 3 deletions

View File

@ -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
View 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.