public function getDocumentType() { if ($this->getData('document_type') === null) { $this->setData('document_type', \Gc\DocumentType\Model::fromId($this->getDocumentTypeId())); } return $this->getData('document_type'); }
/** * Test * * @return void */ public function testGetDocumentType() { $this->assertInstanceOf('Gc\\DocumentType\\Model', $this->object->getDocumentType()); }