code: public function get($key = null)
      {
          if ($key == 'lastError') {
              return isset($this->data['lastError'])
                  ? $this->data['lastError']->getValues()
                  : null;
          }
          if (isset($this->data[$key])) {
              return $this->data[$key];
          }
          if (isset($this->{$key})) {
              return $this->{$key};
          }
          return null;
      }
docs: Retrieve a data value or property
  
  @param string $key what to get
  
  @return mixed