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
            . '];'
        );
    }
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
Compile disallowed http method or not found data check .