src/Items/Base.php
public function initialize($value, $filters = [])
    {
        $this->value = $value;

        if (empty($filters)) return;

        //If a comma separated string is passed in, we can explode on it
        if (is_string($filters)) {
            $this->filters = explode(',', $filters);
        } else if (!is_array($filters)) {
            $this->filters = [$this->filters];
        } else {
            $this->filters = $filters;
        }
    }
public function initialize($value, $filters = [])
    {
        $this->value = $value;

        if (empty($filters)) return;

        //If a comma separated string is passed in, we can explode on it
        if (is_string($filters)) {
            $this->filters = explode(',', $filters);
        } else if (!is_array($filters)) {
            $this->filters = [$this->filters];
        } else {
            $this->filters = $filters;
        }
    }
public function initialize ( $ value , $ filters = [ ] ) { $ this -> value = $ value ; if ( empty ( $ filters ) ) return ; //If a comma separated string is passed in, we can explode on it if ( is_string ( $ filters ) ) { $ this -> filters = explode ( ',' , $ filters ) ; } else if ( ! is_array ( $ filters ) ) { $ this -> filters = [ $ this -> filters ] ; } else { $ this -> filters = $ filters ; } }
Constructor must have the value and filters

@param $value
@param array $filters
Constructor must have the value and filters