Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phragment/phid/PhragmentPHIDTypeSnapshot.php
<?php | <?php | ||||
final class PhragmentPHIDTypeSnapshot | final class PhragmentPHIDTypeSnapshot extends PhabricatorPHIDType { | ||||
extends PhabricatorPHIDType { | |||||
const TYPECONST = 'PHRS'; | const TYPECONST = 'PHRS'; | ||||
public function getTypeConstant() { | |||||
return self::TYPECONST; | |||||
} | |||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Snapshot'); | return pht('Snapshot'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhragmentSnapshot(); | return new PhragmentSnapshot(); | ||||
} | } | ||||
Show All 25 Lines |