From 1270c37a11b135ff3939ddf597910036a5d7dc7b Mon Sep 17 00:00:00 2001 From: remi-san Date: Sun, 13 Mar 2016 17:33:05 +0000 Subject: [PATCH] added info in the readme --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6304a70..55935c7 100644 --- a/README.md +++ b/README.md @@ -7,4 +7,13 @@ [![Packagist Version](https://img.shields.io/packagist/v/remi-san/specification.svg?style=flat-square)](https://packagist.org/packages/remi-san/specification) [![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/remi-san/specification.svg?style=flat-square)](https://scrutinizer-ci.com/g/remi-san/specification/code-structure) -A lib to use the specification pattern +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. + \ No newline at end of file