Changeset View
Changeset View
Standalone View
Standalone View
src/applications/doorkeeper/engine/DoorkeeperObjectRef.php
| Show All 23 Lines | final class DoorkeeperObjectRef extends Phobject { | ||||
| public function attachExternalObject( | public function attachExternalObject( | ||||
| DoorkeeperExternalObject $external_object) { | DoorkeeperExternalObject $external_object) { | ||||
| $this->externalObject = $external_object; | $this->externalObject = $external_object; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getExternalObject() { | public function getExternalObject() { | ||||
| if (!$this->externalObject) { | if (!$this->externalObject) { | ||||
| throw new Exception( | throw new PhutilInvalidStateException('attachExternalObject'); | ||||
| 'Call attachExternalObject() before getExternalObject()!'); | |||||
| } | } | ||||
| return $this->externalObject; | return $this->externalObject; | ||||
| } | } | ||||
| public function setIsVisible($is_visible) { | public function setIsVisible($is_visible) { | ||||
| $this->isVisible = $is_visible; | $this->isVisible = $is_visible; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines | |||||