Collections\Dictionary::__construct PHP Method

__construct() public method

public __construct ( $keyType, $valType, array $storage = [] )
$keyType
$valType
$storage array
    public function __construct($keyType, $valType, array $storage = [])
    {
        $this->keyType = $this->determineType($keyType, true);
        $this->valType = $this->determineType($valType);
        foreach ($storage as $key => $val) {
            $this->validateItem($key, $this->keyType);
            $this->validateItem($val, $this->valType);
            $this->storage[$key] = $val;
        }
    }