Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/phid/PhabricatorFilePHIDTypeFile.php
<?php | <?php | ||||
final class PhabricatorFilePHIDTypeFile extends PhabricatorPHIDType { | final class PhabricatorFilePHIDTypeFile extends PhabricatorPHIDType { | ||||
const TYPECONST = 'FILE'; | const TYPECONST = 'FILE'; | ||||
public function getTypeConstant() { | |||||
return self::TYPECONST; | |||||
} | |||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('File'); | return pht('File'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhabricatorFile(); | return new PhabricatorFile(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |