Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/diff/PhabricatorDocumentEngineBlock.php
<?php | <?php | ||||
final class PhabricatorDocumentEngineBlock | final class PhabricatorDocumentEngineBlock | ||||
extends Phobject { | extends Phobject { | ||||
private $blockKey; | private $blockKey; | ||||
private $content; | private $content; | ||||
private $classes = array(); | |||||
private $differenceHash; | private $differenceHash; | ||||
private $differenceType; | private $differenceType; | ||||
private $isVisible; | private $isVisible; | ||||
public function setContent($content) { | public function setContent($content) { | ||||
$this->content = $content; | $this->content = $content; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getContent() { | public function getContent() { | ||||
return $this->content; | return $this->content; | ||||
} | } | ||||
public function newContentView() { | |||||
return $this->getContent(); | |||||
} | |||||
public function setBlockKey($block_key) { | public function setBlockKey($block_key) { | ||||
$this->blockKey = $block_key; | $this->blockKey = $block_key; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getBlockKey() { | public function getBlockKey() { | ||||
return $this->blockKey; | return $this->blockKey; | ||||
} | } | ||||
public function addClass($class) { | |||||
$this->classes[] = $class; | |||||
return $this; | |||||
} | |||||
public function getClasses() { | |||||
return $this->classes; | |||||
} | |||||
public function setDifferenceHash($difference_hash) { | public function setDifferenceHash($difference_hash) { | ||||
$this->differenceHash = $difference_hash; | $this->differenceHash = $difference_hash; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getDifferenceHash() { | public function getDifferenceHash() { | ||||
return $this->differenceHash; | return $this->differenceHash; | ||||
} | } | ||||
Show All 20 Lines |