public function getClass() { if (!$this->class && $this->getObject()) { $this->class = $this->getObject()->getClass(); } return $this->class; }