mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-03 13:37:27 +02:00
fix typo
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
namespace DesignPatterns\Specification;
|
namespace DesignPatterns\Specification;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A logical AND specification
|
* A logical OR specification
|
||||||
*/
|
*/
|
||||||
class Either extends AbstractSpecification
|
class Either extends AbstractSpecification
|
||||||
{
|
{
|
||||||
@@ -24,7 +24,7 @@ class Either extends AbstractSpecification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the evaluation of both wrapped specifications as a logical AND
|
* Returns the evaluation of both wrapped specifications as a logical OR
|
||||||
*
|
*
|
||||||
* @param Item $item
|
* @param Item $item
|
||||||
*
|
*
|
||||||
@@ -34,4 +34,4 @@ class Either extends AbstractSpecification
|
|||||||
{
|
{
|
||||||
return $this->left->isSatisfiedBy($item) || $this->right->isSatisfiedBy($item);
|
return $this->left->isSatisfiedBy($item) || $this->right->isSatisfiedBy($item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user