Kolyunya/string-processor

View on GitHub
sources/Format/UpperCaseFormatter.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Kolyunya\StringProcessor\Format;

use Kolyunya\StringProcessor\BaseProcessor;

/**
 * Converts a string to an "UPPER CASE".
 * @author Kolyunya
 */
class UpperCaseFormatter extends BaseProcessor
{
    /**
     * @inheritdoc
     */
    protected function selfProcession($string)
    {
        $string = mb_convert_case($string, MB_CASE_UPPER);
        return $string;
    }
}