Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/document/PhabricatorDocumentRef.php
<?php | <?php | ||||
final class PhabricatorDocumentRef | final class PhabricatorDocumentRef | ||||
extends Phobject { | extends Phobject { | ||||
private $name; | private $name; | ||||
private $mimeType; | private $mimeType; | ||||
private $file; | private $file; | ||||
private $byteLength; | private $byteLength; | ||||
private $snippet; | private $snippet; | ||||
private $symbolMetadata = array(); | private $symbolMetadata = array(); | ||||
private $blameURI; | private $blameURI; | ||||
private $coverage = array(); | |||||
public function setFile(PhabricatorFile $file) { | public function setFile(PhabricatorFile $file) { | ||||
$this->file = $file; | $this->file = $file; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getFile() { | public function getFile() { | ||||
return $this->file; | return $this->file; | ||||
▲ Show 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | public function setBlameURI($blame_uri) { | ||||
$this->blameURI = $blame_uri; | $this->blameURI = $blame_uri; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getBlameURI() { | public function getBlameURI() { | ||||
return $this->blameURI; | return $this->blameURI; | ||||
} | } | ||||
public function addCoverage($coverage) { | |||||
$this->coverage[] = array( | |||||
'data' => $coverage, | |||||
); | |||||
return $this; | |||||
} | |||||
public function getCoverage() { | |||||
return $this->coverage; | |||||
} | |||||
} | } |