public function process(File $phpcsFile, $stackPtr)
    {
        $error = 'Use of switch statements is forbidden. Consider using objects instead.';

        $phpcsFile->recordMetric($stackPtr, 'No switch', 'no');
        $phpcsFile->addError($error, $stackPtr, 'NotAllowed');
    }
public function process(File $phpcsFile, $stackPtr)
    {
        $error = 'Use of switch statements is forbidden. Consider using objects instead.';

        $phpcsFile->recordMetric($stackPtr, 'No switch', 'no');
        $phpcsFile->addError($error, $stackPtr, 'NotAllowed');
    }
{@inheritdoc}