Page MenuHomeDevCentral

BaseMap.php
No OneTemporary

BaseMap.php

<?php
namespace Keruald\OmniTools\Collections;
use ArrayAccess;
use IteratorAggregate;
abstract class BaseMap extends BaseCollection
implements ArrayAccess, IteratorAggregate {
///
/// Methods to implement
///
public abstract function get (mixed $key) : mixed;
public abstract function getOr (mixed $key, mixed $defaultValue): mixed;
public abstract function set (mixed $key, mixed $value) : static;
public abstract function unset (mixed $key) : static;
public abstract function has (mixed $key) : bool;
public abstract function contains (mixed $value) : bool;
///
/// ArrayAccess
/// Interface to provide accessing objects as arrays.
///
public function offsetExists (mixed $offset) : bool {
return $this->has($offset);
}
public function offsetGet (mixed $offset) : mixed {
return $this->get($offset);
}
public function offsetSet (mixed $offset, mixed $value) : void {
$this->set($offset, $value);
}
public function offsetUnset (mixed $offset) : void {
$this->unset($offset);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 16, 13:14 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3116566
Default Alt Text
BaseMap.php (1 KB)

Event Timeline