Exemplo n.º 1
0
 public function getSigner()
 {
     if ($this->signer == null) {
         if ($this->signerId !== null) {
             // Retrieve signer from signer id
             $this->signer = $this->document->getCaseFile()->findSigner($this->signerId);
         } else {
             // Retrieve signer from API
             $signers = parent::getLinkedEntities($this, 'Penneo\\SDK\\Signer');
             $this->signer = $signers[0];
         }
     }
     return $this->signer;
 }
Exemplo n.º 2
0
 public function getCaseFiles()
 {
     return parent::getLinkedEntities($this, 'Penneo\\SDK\\CaseFile');
 }
Exemplo n.º 3
0
 public function getCaseFileTemplate()
 {
     if ($this->id && !$this->caseFileType) {
         $caseFileTypes = parent::getLinkedEntities($this, 'Penneo\\SDK\\CaseFileTemplate');
         $this->caseFileType = $caseFileTypes[0];
     }
     return $this->caseFileType;
 }
Exemplo n.º 4
0
 public function getEventLog()
 {
     return parent::getLinkedEntities($this, 'Penneo\\SDK\\LogEntry');
 }
Exemplo n.º 5
0
 public function getDocumentType()
 {
     if ($this->id && !$this->documentType) {
         $documentTypes = parent::getLinkedEntities($this, 'Penneo\\SDK\\DocumentType');
         $this->documentType = $documentTypes[0];
     }
     return $this->documentType;
 }