Changeset View
Changeset View
Standalone View
Standalone View
src/utils/PhutilArray.php
Context not available. | |||||
/* -( Countable Interface )------------------------------------------------ */ | /* -( Countable Interface )------------------------------------------------ */ | ||||
#[\ReturnTypeWillChange] | |||||
public function count() { | public function count() { | ||||
return count($this->data); | return count($this->data); | ||||
} | } | ||||
Context not available. | |||||
/* -( ArrayAccess Interface )---------------------------------------------- */ | /* -( ArrayAccess Interface )---------------------------------------------- */ | ||||
#[\ReturnTypeWillChange] | |||||
public function offsetExists($key) { | public function offsetExists($key) { | ||||
return array_key_exists($key, $this->data); | return array_key_exists($key, $this->data); | ||||
} | } | ||||
#[\ReturnTypeWillChange] | |||||
public function offsetGet($key) { | public function offsetGet($key) { | ||||
return $this->data[$key]; | return $this->data[$key]; | ||||
} | } | ||||
#[\ReturnTypeWillChange] | |||||
public function offsetSet($key, $value) { | public function offsetSet($key, $value) { | ||||
$this->data[$key] = $value; | $this->data[$key] = $value; | ||||
} | } | ||||
#[\ReturnTypeWillChange] | |||||
public function offsetUnset($key) { | public function offsetUnset($key) { | ||||
unset($this->data[$key]); | unset($this->data[$key]); | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0