| Conditions | 4 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 20 | public function getDownloadLink()  | 
            ||
| 21 |     { | 
            ||
| 22 | $invoice = $this->getOwner()->Parent();  | 
            ||
| 23 | $match = $this->getOwner()->match();  | 
            ||
| 24 | |||
| 25 |         if ($match && method_exists($match, "getDownloadLink") && $invoice->isPaid()) { | 
            ||
| 26 | return $match->getDownloadLink(  | 
            ||
| 27 | $invoice->ID,  | 
            ||
| 28 | $invoice->AccessKey  | 
            ||
| 29 | );  | 
            ||
| 30 | }  | 
            ||
| 31 | |||
| 32 | return "";  | 
            ||
| 33 | }  | 
            ||
| 35 |