2017 © Pedro Peláez
 

library specification

An implementation of the Specification Pattern for Php7

image

stratadox/specification

An implementation of the Specification Pattern for Php7

  • PHP
  • 3 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 21 % Grown

The README.md

Specification

Build Status Coverage Status Scrutinizer Code Quality, (*1)

An implementation of the Specification pattern for Php7, (*2)

Installation

Install using composer:, (*3)

composer require stratadox/specification

Usage Sample

// The business logic
$allBoxes = CollectionOfBoxes::containing(
    Box::ofWeight(1),
    Box::ofWeight(2),
    Box::ofWeight(3),
    Box::ofWeight(5),
    Box::ofWeight(12),
    Box::ofWeight(26)
);
$weighBetween2and10 = AreHeavier::than(2)->and(AreLighter::than(10));
$this->assertEquals(
    CollectionOfBoxes::containing(
        Box::ofWeight(3),
        Box::ofWeight(5),
        Box::ofWeight(26)
    ),
    $allBoxes->that($weighBetween2and10->or(AreHeavier::than(20)))
);

The Versions

20/12 2017

dev-master

9999999-dev

An implementation of the Specification Pattern for Php7

  Sources   Download

MIT

The Requires

 

The Development Requires

filter select pattern specification php7 filters ddd satisfied selector condition specifications stratadox satisfiable satisfying satisfiedby issatisfiedby specifier specifying specifying

20/12 2017

v1.0.2

1.0.2.0

An implementation of the Specification Pattern for Php7

  Sources   Download

MIT

The Requires

 

The Development Requires

filter select pattern specification php7 filters ddd satisfied selector condition specifications stratadox satisfiable satisfying satisfiedby issatisfiedby specifier specifying

20/12 2017

v1.0.1

1.0.1.0

An implementation of the Specification Pattern for Php7

  Sources   Download

MIT

The Requires

 

The Development Requires

filter select pattern specification php7 filters ddd satisfied selector condition specifications stratadox satisfiable satisfying satisfiedby issatisfiedby specifier specifying

08/09 2017

v1.0

1.0.0.0

An implementation of the Specification Pattern for Php7

  Sources   Download

MIT

The Requires

 

The Development Requires

filter select pattern specification php7 filters ddd satisfied selector condition specifications stratadox satisfiable satisfying satisfiedby issatisfiedby specifier specifying