Silber\Bouncer\Clipboard::getMatchedAbilityId PHP Méthode

getMatchedAbilityId() protected méthode

Get the ID of the ability that matches one of the applicable abilities.
protected getMatchedAbilityId ( Collection $abilityMap, Collection $applicable ) : integer | null
$abilityMap Illuminate\Support\Collection
$applicable Illuminate\Support\Collection
Résultat integer | null
    protected function getMatchedAbilityId(Collection $abilityMap, Collection $applicable)
    {
        foreach ($abilityMap as $id => $identifier) {
            if ($applicable->contains($identifier)) {
                return $id;
            }
        }
    }