<?php

namespace TdyCommons\Filter\Word;

use Zend\Filter\FilterInterface;

/**
 * A Filter class to capitalize first letter of the word.
 *
 * @author Edril Padayhag
 */
class UppercaseWords implements FilterInterface
{

    /**
     * @see FilterInterface::filter()
     *
     * @param mixed $value
     *
     * @return mixed|string
     */
    public function filter($value)
    {
        return ucwords($value);
    }

}
