Skip to content

Instantly share code, notes, and snippets.

@mishanon
Created July 1, 2015 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mishanon/3b0182fad64eaf84e2ca to your computer and use it in GitHub Desktop.
Save mishanon/3b0182fad64eaf84e2ca to your computer and use it in GitHub Desktop.
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