return $this;
}
- public function offsetExists($offset) {
+ public function offsetExists($offset): bool {
return isset($this->load()->cache[$offset]);
}
+ #[\ReturnTypeWillChange]
public function &offsetGet($offset) {
return $this->load()->cache[$offset];
}
- public function offsetSet($offset, $value) {
+ public function offsetSet($offset, $value): void {
if ($offset === NULL) {
$this->load()->cache[] = $value;
}
}
}
- public function offsetUnset($offset) {
+ public function offsetUnset($offset): void {
unset($this->load()->cache[$offset]);
}
+ #[\ReturnTypeWillChange]
public function getIterator() {
return new ArrayIterator($this->load()->cache);
}
return $this->load()->cache;
}
- public function count() {
+ public function count(): int {
return count($this->load()->cache);
}
/**
* @inheritDoc
*/
- public function offsetExists($offset) {
+ public function offsetExists($offset): bool {
return in_array($offset, ['entity', 'action', 'params', 'version', 'check_permissions', 'id']) || isset($this->_arrayStorage[$offset]);
}
/**
* @inheritDoc
*/
+ #[\ReturnTypeWillChange]
public function &offsetGet($offset) {
$val = NULL;
if (in_array($offset, ['entity', 'action'])) {
/**
* @inheritDoc
*/
- public function offsetSet($offset, $value) {
+ public function offsetSet($offset, $value): void {
if (in_array($offset, ['entity', 'action', 'entityName', 'actionName', 'params', 'version', 'id'])) {
throw new \API_Exception('Cannot modify api4 state via array access');
}
/**
* @inheritDoc
*/
- public function offsetUnset($offset) {
+ public function offsetUnset($offset): void {
if (in_array($offset, ['entity', 'action', 'entityName', 'actionName', 'params', 'check_permissions', 'version', 'id'])) {
throw new \API_Exception('Cannot modify api4 state via array access');
}
*
* @return int
*/
- public function count() {
+ public function count(): int {
return $this->rowCount ?? parent::count();
}
/**
* @return array
*/
+ #[\ReturnTypeWillChange]
public function jsonSerialize() {
return $this->getArrayCopy();
}
return $this->action;
}
+ #[\ReturnTypeWillChange]
public function rewind() {
return reset($this->fields);
}
+ #[\ReturnTypeWillChange]
public function current() {
return current($this->fields);
}
+ #[\ReturnTypeWillChange]
public function key() {
return key($this->fields);
}
- public function next() {
- return next($this->fields);
+ public function next(): void {
+ next($this->fields);
}
- public function valid() {
+ public function valid(): bool {
return key($this->fields) !== NULL;
}
$this->tokenProcessor = $tokenProcessor;
}
+ #[\ReturnTypeWillChange]
public function current() {
return new TokenRow($this->tokenProcessor, parent::key());
}
*
* @return bool
*/
- public function offsetExists($offset) {
+ public function offsetExists($offset): bool {
return isset($this->tokenProcessor->rowContexts[$this->tokenRow][$offset])
|| isset($this->tokenProcessor->context[$offset]);
}
*
* @return string
*/
+ #[\ReturnTypeWillChange]
public function &offsetGet($offset) {
if (isset($this->tokenProcessor->rowContexts[$this->tokenRow][$offset])) {
return $this->tokenProcessor->rowContexts[$this->tokenRow][$offset];
* @param string $offset
* @param mixed $value
*/
- public function offsetSet($offset, $value) {
+ public function offsetSet($offset, $value): void {
$this->tokenProcessor->rowContexts[$this->tokenRow][$offset] = $value;
}
*
* @param mixed $offset
*/
- public function offsetUnset($offset) {
+ public function offsetUnset($offset): void {
unset($this->tokenProcessor->rowContexts[$this->tokenRow][$offset]);
}
*
* @return \ArrayIterator
*/
+ #[\ReturnTypeWillChange]
public function getIterator() {
return new \ArrayIterator($this->createMergedArray());
}
*
* @return int
*/
- public function count() {
+ public function count(): int {
return count($this->createMergedArray());
}
*
* @return bool
*/
- public function offsetExists($offset) {
+ public function offsetExists($offset): bool {
return array_key_exists(array_merge($this->fields(), ['main_conference_event_id']), $offset);
}
*
* @return int
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset) {
if ($offset == 'event') {
return $this->event->toArray();
* @param mixed $offset
* @param mixed $value
*/
- public function offsetSet($offset, $value) {
+ public function offsetSet($offset, $value): void {
}
/**
* @param mixed $offset
*/
- public function offsetUnset($offset) {
+ public function offsetUnset($offset): void {
}
/**
$this->i = 0;
}
+ #[\ReturnTypeWillChange]
public function rewind() {
$this->i = 0;
}
/**
* @return array
*/
+ #[\ReturnTypeWillChange]
public function current() {
$count = count($this->dataset[$this->i]['id']);
$ids = $this->dataset[$this->i]['id'];
/**
* @return int
*/
+ #[\ReturnTypeWillChange]
public function key() {
return $this->i;
}
- public function next() {
+ public function next(): void {
$this->i++;
}
/**
* @return bool
*/
- public function valid() {
+ public function valid(): bool {
return isset($this->dataset[$this->i]);
}
],
];
+ #[\ReturnTypeWillChange]
public function rewind() {
$this->i = 0;
}
/**
* @return array
*/
+ #[\ReturnTypeWillChange]
public function current() {
$count = count($this->dataset[$this->i]['id']);
$ids = $this->dataset[$this->i]['id'];
/**
* @return int
*/
+ #[\ReturnTypeWillChange]
public function key() {
return $this->i;
}
- public function next() {
+ public function next(): void {
$this->i++;
}
/**
* @return bool
*/
- public function valid() {
+ public function valid(): bool {
return isset($this->dataset[$this->i]);
}
$this->i = 0;
}
+ #[\ReturnTypeWillChange]
public function rewind() {
$this->i = 0;
}
/**
* @return array
*/
+ #[\ReturnTypeWillChange]
public function current() {
$count = count($this->dataset[$this->i]['id']);
$ids = $this->dataset[$this->i]['id'];
/**
* @return int
*/
+ #[\ReturnTypeWillChange]
public function key() {
return $this->i;
}
- public function next() {
+ public function next(): void {
$this->i++;
}
/**
* @return bool
*/
- public function valid() {
+ public function valid(): bool {
return isset($this->dataset[$this->i]);
}