Created
July 1, 2015 12:48
-
-
Save mishanon/3b0182fad64eaf84e2ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function _checkFiltersForContainer($container, $actors, $excludeFilters, $excludeActorIds){ | |
$atLeastOneActorInterested = false; | |
foreach ($actors as $actor) { | |
$mapper = new \Lendo\Domain\Filter\Mappers\LoanAppliedFilterMapper($excludeFilters); | |
if (!\in_array($actor->getId(), $excludeActorIds) && $actor->isInterested($container, $mapper, true)) { | |
$atLeastOneActorInterested = true; | |
} else { | |
return false; | |
} | |
} | |
return $atLeastOneActorInterested; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment