fabrizio/map-php

Use map in PHP

v1.1 2021-08-21 00:31 UTC

This package is auto-updated.

Last update: 2024-04-23 10:56:37 UTC


README

Total Downloads Latest Stable Version

Installation

Install the latest version with

$ composer require fabrizio/map-php

Basic Usage

<?php

use Fabrizio\Map\Map;

// create map
$map = new Map(xClass::class, OtherClass::class);

$xclass = new xClass();
$oclass = new OtherClass();

// put key & value
$map->put($xclass,$oclass);

// get value using key
var_dump($map->get($xclass));

Author

@F4brizio - f4brizio.21@gmail.com

License

Monolog is licensed under the MIT License - see the LICENSE file for details