PHP Classes

File: src/Filter/Adapter/FilterAdapterZf.php

Recommend this page to a friend!
  Packages of Derek McLean   HTML Forms   src/Filter/Adapter/FilterAdapterZf.php   Download  
File: src/Filter/Adapter/FilterAdapterZf.php
Role: Class source
Content type: text/plain
Description: Class source
Class: HTML Forms
Generate and validate submitted HTML forms
Author: By
Last change:
Date: 8 years ago
Size: 527 bytes
 

 

Contents

Class file image Download
<?php

namespace Del\Form\Filter\Adapter;

use Del\Form\Filter\FilterInterface;
use Zend\Filter\FilterInterface as ZendFilterInterface;

class FilterAdapterZf implements FilterInterface
{
    private $filter;

    /**
     * FilterAdapterZf constructor.
     */
    public function __construct(ZendFilterInterface $filter)
    {
        $this->filter = $filter;
    }

    /**
     * @param mixed $value
     * @return mixed
     */
    public function filter($value)
    {
        return $this->filter->filter($value);
    }
}