Skip to content

Commit 645e6e1

Browse files
author
Dominik Liebler
committed
added README and fixed abstract method for Specification
1 parent 73b2ba9 commit 645e6e1

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Specification/AbstractSpecification.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ abstract class AbstractSpecification implements SpecificationInterface
1313
*
1414
* @return bool
1515
*/
16-
public function isSatisfiedBy(Item $item)
17-
{
18-
}
16+
abstract public function isSatisfiedBy(Item $item);
1917

2018
/**
2119
* Creates a new logical AND specification

Specification/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Specification
2+
3+
## Purpose
4+
5+
Builds a clear specification of business rules, where objects can be checked against. The composite specification class has
6+
one method called `isSatisfiedBy` that returns either true or false depending on whether the given object satisfies the specification.
7+

0 commit comments

Comments
 (0)