src/Viserio/Component/Routing/TreeGenerator/RouteTreeCompiler.php
private function compileDisallowedHttpMethodOrNotFound(PHPCodeCollection $code): void
    {
        $code->appendLine(
            'return ' .
            'isset($allowedHttpMethods) '
            . '? '
            . '['
            . DispatcherContract::HTTP_METHOD_NOT_ALLOWED
            . ', $allowedHttpMethods] '
            . ': '
            . '['
            . DispatcherContract::NOT_FOUND
            . '];'
        );
    }
private function compileDisallowedHttpMethodOrNotFound(PHPCodeCollection $code): void
    {
        $code->appendLine(
            'return ' .
            'isset($allowedHttpMethods) '
            . '? '
            . '['
            . DispatcherContract::HTTP_METHOD_NOT_ALLOWED
            . ', $allowedHttpMethods] '
            . ': '
            . '['
            . DispatcherContract::NOT_FOUND
            . '];'
        );
    }
Compile disallowed http method or not found data check.

@param \Viserio\Component\Routing\TreeGenerator\PHPCodeCollection $code