src/Core/Template.php
public function bindData($name, &$value, $filter = null)
    {
        $this->data[$name] = $value;
        if (!is_null($filter)) {
            $this->filters[$name] = $filter;
        }
        if (!$name && !$value) {
            throw new \InvalidArgumentException('Invalid argument for bind template data');
        }
        return $this;
    }
public function bindData($name, &$value, $filter = null)
    {
        $this->data[$name] = $value;
        if (!is_null($filter)) {
            $this->filters[$name] = $filter;
        }
        if (!$name && !$value) {
            throw new \InvalidArgumentException('Invalid argument for bind template data');
        }
        return $this;
    }
@param string $name
@param mixed $value
@param integer $filter

@throws \InvalidArgumentException

@return $this