public function set($data, $value = null)
    {
        //argument 1 must be an array or string
        Argument::i()->test(1, 'array', 'string');

        if (is_array($data)) {
            $this->data = $data;
            return $this;
        }

        $this->data[$data] = $value;

        return $this;
    }
public function set($data, $value = null)
    {
        //argument 1 must be an array or string
        Argument::i()->test(1, 'array', 'string');

        if (is_array($data)) {
            $this->data = $data;
            return $this;
        }

        $this->data[$data] = $value;

        return $this;
    }
public function set ( $ data , $ value = null ) { //argument 1 must be an array or string Argument :: i ( ) -> test ( 1 , 'array' , 'string' ) ; if ( is_array ( $ data ) ) { $ this -> data = $ data ; return $ this ; } $ this -> data [ $ data ] = $ value ; return $ this ; }
Sets template variables

@param *array|string $data  data
@param mixed         $value value

@return Eden\Template\Index
Sets template variables