Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / search / engineextension / PhabricatorSearchEngineAttachment.php
blob3028250faff268a24c542d60af01bee80bb2dd3a
1 <?php
3 abstract class PhabricatorSearchEngineAttachment extends Phobject {
5 private $attachmentKey;
6 private $viewer;
7 private $searchEngine;
9 final public function setViewer($viewer) {
10 $this->viewer = $viewer;
11 return $this;
14 final public function getViewer() {
15 return $this->viewer;
18 final public function setSearchEngine(
19 PhabricatorApplicationSearchEngine $engine) {
20 $this->searchEngine = $engine;
21 return $this;
24 final public function getSearchEngine() {
25 return $this->searchEngine;
28 public function setAttachmentKey($attachment_key) {
29 $this->attachmentKey = $attachment_key;
30 return $this;
33 public function getAttachmentKey() {
34 return $this->attachmentKey;
37 abstract public function getAttachmentName();
38 abstract public function getAttachmentDescription();
40 public function willLoadAttachmentData($query, $spec) {
41 return;
44 public function loadAttachmentData(array $objects, $spec) {
45 return null;
48 abstract public function getAttachmentForObject($object, $data, $spec);