Neomerx\JsonApi\Http\Query\RestrictiveQueryChecker::valuesWithinAllowed PHP Method

valuesWithinAllowed() private method

private valuesWithinAllowed ( array $toCheck = null, array $allowed = null ) : boolean
$toCheck array
$allowed array
return boolean
    private function valuesWithinAllowed(array $toCheck = null, array $allowed = null)
    {
        return $toCheck === null || $allowed === null || empty(array_diff($toCheck, $allowed));
    }