for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EventEspresso\core\domain\entities\routing\specifications;
/**
* Class MatchAllRouteSpecifications
* Returns true if ALL of the supplied Route Match Specifications also return true
* ie: supplied Route Match Specifications joined using AND logic
*
* @package EventEspresso\core\domain\entities\routing
* @author Brent Christensen
* @since 4.9.71.p
*/
class MatchAllRouteSpecifications extends MultiRouteSpecification
{
* returns true if current request matches specification
* @return boolean
public function isMatchingRoute()
foreach ($this->specifications as $specification) {
if (! $specification->isMatchingRoute()) {
return false;
}
return true;