<?php
/**
 * core.framework
 *
 * @category  Core
 * @package   Core_Filter
 * @copyright Copyright (c) 2011. Burza d.o.o. (http://web.burza.hr/en/)
 * @license   proprietary
 */

/**
 * @category  Core
 * @package   Core_Filter
 * @copyright Copyright (c) 2011. Burza d.o.o. (http://web.burza.hr/en/)
 * @license   proprietary
 */
class Core_Filter_Null extends Core_Filter_Abstract
{
    /**
     * @param mixed $value Value to filter
     *
     * @return mixed Null if value evaluates to null, the value otherwise.
     */
    public function filter($value)
    {
        return (null == $value) ? null : $value;
    }
}