mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 12:10:10 +02:00
add psalm and travis check
This commit is contained in:
@@ -10,7 +10,7 @@ class AndSpecification implements Specification
|
||||
private $specifications;
|
||||
|
||||
/**
|
||||
* @param Specification[] ...$specifications
|
||||
* @param Specification[] $specifications
|
||||
*/
|
||||
public function __construct(Specification ...$specifications)
|
||||
{
|
||||
|
@@ -10,14 +10,14 @@ class OrSpecification implements Specification
|
||||
private $specifications;
|
||||
|
||||
/**
|
||||
* @param Specification[] ...$specifications
|
||||
* @param Specification[] $specifications
|
||||
*/
|
||||
public function __construct(Specification ...$specifications)
|
||||
{
|
||||
$this->specifications = $specifications;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* if at least one specification is true, return true, else return false
|
||||
*/
|
||||
public function isSatisfiedBy(Item $item): bool
|
||||
|
Reference in New Issue
Block a user