src/Convert.php
/**
     * Methods to explicitly define naming conventions for input string
     *
     * @param string $methodName
     *
     * @return $this
     * @throws \Jawira\CaseConverter\CaseConverterException
     */
Methods to explicitly define naming conventions for input string
@param string $methodName


Methods to explicitly define naming conventions for input string @param string $methodName
protected function handleSplitterMethod(string $methodName): self
    {
        switch ($methodName) {
            case 'fromCamel':
            case 'fromPascal':
                $splitterName = UppercaseSplitter::class;
                break;
            case 'fromSnake':
            case 'fromAda':
            case 'fromMacro':
                $splitterName = UnderscoreSplitter::class;
                break;
            case 'fromKebab':
            case 'fromTrain':
            case 'fromCobol':
                $splitterName = DashSplitter::class;
                break;
            case 'fromLower':
            case 'fromUpper':
            case 'fromTitle':
            case 'fromSentence':
                $splitterName = SpaceSplitter::class;
                break;
            case 'fromDot':
                $splitterName = DotSplitter::class;
                break;
            default:
                throw new CaseConverterException("Unknown method: $methodName");
        }
        $splitter = $this->createSplitter($splitterName, $this->source);
        $this->extractWords($splitter);
        return $this;
    }
protected function handleSplitterMethod ( string $ methodName ) : self { switch ( $ methodName ) { case 'fromCamel' : case 'fromPascal' : $ splitterName = UppercaseSplitter :: class ; break ; case 'fromSnake' : case 'fromAda' : case 'fromMacro' : $ splitterName = UnderscoreSplitter :: class ; break ; case 'fromKebab' : case 'fromTrain' : case 'fromCobol' : $ splitterName = DashSplitter :: class ; break ; case 'fromLower' : case 'fromUpper' : case 'fromTitle' : case 'fromSentence' : $ splitterName = SpaceSplitter :: class ; break ; case 'fromDot' : $ splitterName = DotSplitter :: class ; break ; default : throw new CaseConverterException ( " Unknown method:  $ methodName " ) ; } $ splitter = $ this -> createSplitter ( $ splitterName , $ this -> source ) ; $ this -> extractWords ( $ splitter ) ; return $ this ; }
Methods to explicitly define naming conventions for input string
 @param string $methodName
Methods to explicitly define naming conventions for input string @param string $methodName