Remove all "FileHasObject" edge reads and writes
[phabricator.git] / src / applications / transactions / draft / PhabricatorDraftInterface.php
blob2e03c17d507297fd7072dda557566fd6af083182
1 <?php
3 interface PhabricatorDraftInterface {
5 public function newDraftEngine();
7 public function getHasDraft(PhabricatorUser $viewer);
8 public function attachHasDraft(PhabricatorUser $viewer, $has_draft);
12 /* -( PhabricatorDraftInterface )------------------------------------------ */
15 public function newDraftEngine() {
16 return new <...>DraftEngine();
19 public function getHasDraft(PhabricatorUser $viewer) {
20 return $this->assertAttachedKey($this->drafts, $viewer->getCacheFragment());
23 public function attachHasDraft(PhabricatorUser $viewer, $has_draft) {
24 $this->drafts[$viewer->getCacheFragment()] = $has_draft;
25 return $this;