Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/field/ManiphestFlagCustomField.php
- This file was added.
<?php | |||||
// I'm not sure this is the right use for the Proxy capability. | |||||
// Probably should just use Traits for this. | |||||
final class ManiphestFlagCustomField extends ManiphestCustomField { | |||||
public function __construct() { | |||||
$this->setProxy(new PhorgeFlagFlaggedObjectCustomField()); | |||||
} | |||||
public function canSetProxy() { | |||||
return true; | |||||
} | |||||
public function newStorageObject() { | |||||
return $this->getProxy()->newStorageObject(); | |||||
} | |||||
} |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0