Source of file StringToProper.php

Size: 0,722 Bytes - Last Modified: 2015-12-22T09:12:14-05:00

../src/Filter/StringToProper.php

123456789101112131415161718192021222324252627282930313233
Covered by 6 test(s):
  • MvcLite\FilterStringToProperTest::testFilter with data set #0
  • MvcLite\FilterStringToProperTest::testFilter with data set #1
  • MvcLite\FilterStringToProperTest::testFilter with data set #2
  • MvcLite\FilterStringToProperTest::testFilter with data set #3
  • MvcLite\FilterStringToProperTest::testFilter with data set #4
  • MvcLite\FilterStringToProperTest::testFilter with data set #5
343536
<?php
/**
 * string to upper filter
 *
 * @category    PHP
 * @package     MvcLite
 * @subpackage  Filter
 * @since       File available since release 1.1.x
 * @author      Cory Collier <corycollier@corycollier.com>
 */

namespace MvcLite\Filter;

use MvcLite\FilterAbstract as FilterAbstract;

/**
 * string to upper filter
 *
 * @category    PHP
 * @package     MvcLite
 * @subpackage  Filter
 * @since       Class available since release 1.1.x
 * @author      Cory Collier <corycollier@corycollier.com>
 */
class StringToProper extends FilterAbstract
{
    /**
     * (non-PHPdoc)
     * @see \MvcLite\FilterAbstract::filter()
     */
    public function filter($word = '')
    {
        return ucwords($word);
    }
}