'required phid', ); } public function defineReturnType() { return 'nonempty dict'; } public function defineErrorTypes() { return array( 'ERR-BAD-PHID' => 'No such object exists.', ); } protected function execute(ConduitAPIRequest $request) { $phid = $request->getValue('phid'); $handle = id(new PhabricatorHandleQuery()) ->setViewer($request->getUser()) ->withPHIDs(array($phid)) ->executeOne(); if (!$handle->isComplete()) { throw new ConduitException('ERR-BAD-PHID'); } return $this->buildHandleInformationDictionary($handle); } }