Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phid/handle/pool/PhabricatorHandleList.php
| Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | /* -( ArrayAccess )-------------------------------------------------------- */ | ||||
| public function offsetUnset($offset) { | public function offsetUnset($offset) { | ||||
| $this->raiseImmutableException(); | $this->raiseImmutableException(); | ||||
| } | } | ||||
| private function raiseImmutableException() { | private function raiseImmutableException() { | ||||
| throw new Exception( | throw new Exception( | ||||
| pht( | pht( | ||||
| 'Trying to mutate a PhabricatorHandleList, but this is not permitted; '. | 'Trying to mutate a %s, but this is not permitted; '. | ||||
| 'handle lists are immutable.')); | 'handle lists are immutable.', | ||||
| __CLASS__)); | |||||
| } | } | ||||
| /* -( Countable )---------------------------------------------------------- */ | /* -( Countable )---------------------------------------------------------- */ | ||||
| public function count() { | public function count() { | ||||
| return $this->count; | return $this->count; | ||||
| } | } | ||||
| } | } | ||||