3 final class DoorkeeperURIRef
extends Phobject
{
6 private $applicationType;
7 private $applicationDomain;
11 private $displayMode = self
::DISPLAY_FULL
;
13 const DISPLAY_FULL
= 'full';
14 const DISPLAY_SHORT
= 'short';
16 public function setURI(PhutilURI
$uri) {
21 public function getURI() {
25 public function setApplicationType($application_type) {
26 $this->applicationType
= $application_type;
30 public function getApplicationType() {
31 return $this->applicationType
;
34 public function setApplicationDomain($application_domain) {
35 $this->applicationDomain
= $application_domain;
39 public function getApplicationDomain() {
40 return $this->applicationDomain
;
43 public function setObjectType($object_type) {
44 $this->objectType
= $object_type;
48 public function getObjectType() {
49 return $this->objectType
;
52 public function setObjectID($object_id) {
53 $this->objectID
= $object_id;
57 public function getObjectID() {
58 return $this->objectID
;
61 public function setText($text) {
66 public function getText() {
70 public function setDisplayMode($display_mode) {
72 self
::DISPLAY_FULL
=> true,
73 self
::DISPLAY_SHORT
=> true,
76 if (!isset($options[$display_mode])) {
79 'DoorkeeperURIRef display mode "%s" is unknown.',
83 $this->displayMode
= $display_mode;
87 public function getDisplayMode() {
88 return $this->displayMode
;