public function get($attribute) { if (isset($this->data[$attribute])) { return $this->data[$attribute]; } return $attribute == 'type' ? 'matrix' : null; }