public function getObject() { if (!$this->_object) { $this->_object = new NewComponent(); $this->_object->_text = 'object text'; } return $this->_object; }