Ejemplo n.º 1
0
 public static function findById($id)
 {
     $call = Request::call(Requests::getDocumentRevision($id));
     if (isset($call->number)) {
         throw new Exception($call->description);
     }
     return self::create($call);
 }
Ejemplo n.º 2
0
 /**
  * @return File
  * @throws Exception
  */
 public function getFile()
 {
     $call = Request::call(Requests::getDocumentRevision($this->document_revision_id));
     return File::create($call);
 }