This commit is contained in:
Vitaly
2013-12-06 02:50:24 -08:00
parent 30dd20d6c7
commit 8321d06e9f

View File

@@ -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);
} }
} }