<?php
final class PhabricatorCustomFieldAttachment extends Phobject {
private $lists = array();
public function addCustomFieldList($role, PhabricatorCustomFieldList $list) {
$this->lists[$role] = $list;
return $this;
}
public function getCustomFieldList($role) {
if (empty($this->lists[$role])) {
throw new PhabricatorCustomFieldNotAttachedException(
pht(
"Role list '%s' is not available!",
$role));
}
return $this->lists[$role];
}
}