Silber\Bouncer\Clipboard::getMatchedAbilityId PHP Method

getMatchedAbilityId() protected method

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
return integer | null
    protected function getMatchedAbilityId(Collection $abilityMap, Collection $applicable)
    {
        foreach ($abilityMap as $id => $identifier) {
            if ($applicable->contains($identifier)) {
                return $id;
            }
        }
    }