public function appendData($data)
    {
        if (!is_array($data)) {
            throw new \InvalidArgumentException('Cannot append view data. Expected array argument.');
        }
        $this->data = array_merge($this->data, $data);
    }
public function appendData($data)
    {
        if (!is_array($data)) {
            throw new \InvalidArgumentException('Cannot append view data. Expected array argument.');
        }
        $this->data = array_merge($this->data, $data);
    }
public function appendData ( $ data ) { if ( ! is_array ( $ data ) ) { throw new \ InvalidArgumentException ( 'Cannot append view data. Expected array argument.' ) ; } $ this -> data = array_merge ( $ this -> data , $ data ) ; }
Append new data to existing template data
@param  array
@throws InvalidArgumentException If not given an array argument
Append new data to existing template data