Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function getDocument() |
||
40 | { |
||
41 | if ($this->document instanceof Document) { |
||
42 | return $this->document; |
||
43 | } else { |
||
44 | $this->document = $this->storage->getDocumentBySlug(substr($this->documentPath, 1)); |
||
45 | $this->document->dbHandle = $this->storage->getContentDbHandle(); |
||
46 | return $this->document; |
||
47 | } |
||
48 | } |
||
49 | |||
54 | } |