src/Charcoal/Source/Filter.php
protected function createFilter(array $data = null)
    {
        $filter = new static();
        if ($data !== null) {
            $filter->setData($data);
        }
        return $filter;
    }
protected function createFilter(array $data = null)
    {
        $filter = new static();
        if ($data !== null) {
            $filter->setData($data);
        }
        return $filter;
    }
protected function createFilter ( array $ data = null ) { $ filter = new static ( ) ; if ( $ data !== null ) { $ filter -> setData ( $ data ) ; } return $ filter ; }
Create a new filter expression.

@see    FilterCollectionTrait::createFilter()
@param  array $data Optional expression data.
@return self
Create a new filter expression .