public function toCamelCase(): self
    {

        return $this->split('/[_\s\W]+/')
            ->reduce(function (Text $carry, Text $piece) {
                return $carry->append($piece->toUpperFirst()->stringify());
            }, self::make())
            ->toLowerFirst();
    }
public function toCamelCase(): self
    {

        return $this->split('/[_\s\W]+/')
            ->reduce(function (Text $carry, Text $piece) {
                return $carry->append($piece->toUpperFirst()->stringify());
            }, self::make())
            ->toLowerFirst();
    }
public function toCamelCase ( ) : self { return $ this -> split ( '/[_\s\W]+/' ) -> reduce ( function ( Text $ carry , Text $ piece ) { return $ carry -> append ( $ piece -> toUpperFirst ( ) -> stringify ( ) ) ; } , self :: make ( ) ) -> toLowerFirst ( ) ; }
Transforma la cadena de texto a formato camelCase

@return \PlanB\Type\Text\Text
Transforma la cadena de texto a formato camelCase