Neomerx\JsonApi\Http\Query\RestrictiveQueryChecker::valuesWithinAllowed PHP Метод

valuesWithinAllowed() приватный Метод

private valuesWithinAllowed ( array $toCheck = null, array $allowed = null ) : boolean
$toCheck array
$allowed array
Результат boolean
    private function valuesWithinAllowed(array $toCheck = null, array $allowed = null)
    {
        return $toCheck === null || $allowed === null || empty(array_diff($toCheck, $allowed));
    }