Differential D13200 Diff 31965 src/infrastructure/customfield/field/PhabricatorCustomFieldAttachment.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/field/PhabricatorCustomFieldAttachment.php
| Show All 14 Lines | final class PhabricatorCustomFieldAttachment { | ||||
| public function addCustomFieldList($role, PhabricatorCustomFieldList $list) { | public function addCustomFieldList($role, PhabricatorCustomFieldList $list) { | ||||
| $this->lists[$role] = $list; | $this->lists[$role] = $list; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getCustomFieldList($role) { | public function getCustomFieldList($role) { | ||||
| if (empty($this->lists[$role])) { | if (empty($this->lists[$role])) { | ||||
| throw new PhabricatorCustomFieldNotAttachedException( | throw new PhabricatorCustomFieldNotAttachedException( | ||||
| "Role list '{$role}' is not available!"); | pht( | ||||
| "Role list '%s' is not available!", | |||||
epriestley: Errant `}`. | |||||
| $role)); | |||||
| } | } | ||||
| return $this->lists[$role]; | return $this->lists[$role]; | ||||
| } | } | ||||
| } | } | ||||
Errant }.