static public function createFromArray(array $data)
    {
        if (4 != count($data)) {
            throw new InvalidArgumentException("Expected data as a 4 length array.");
        }

        $filter = new static($data[0], $data[1]);
        $filter->setOperator($data[2]);
        $filter->setValue(unserialize($data[3]));

        return $filter;
    }
static public function createFromArray(array $data)
    {
        if (4 != count($data)) {
            throw new InvalidArgumentException("Expected data as a 4 length array.");
        }

        $filter = new static($data[0], $data[1]);
        $filter->setOperator($data[2]);
        $filter->setValue(unserialize($data[3]));

        return $filter;
    }
static public function createFromArray ( array $ data ) { if ( 4 != count ( $ data ) ) { throw new InvalidArgumentException ( "Expected data as a 4 length array." ) ; } $ filter = new static ( $ data [ 0 ] , $ data [ 1 ] ) ; $ filter -> setOperator ( $ data [ 2 ] ) ; $ filter -> setValue ( unserialize ( $ data [ 3 ] ) ) ; return $ filter ; }
Creates the active filter from the given data array.

@param array $data

@return ActiveFilter
Creates the active filter from the given data array .