Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 790 Bytes

File metadata and controls

31 lines (21 loc) · 790 Bytes

Clean\Registry

Scrutinizer Code Quality Code Coverage Build Status

Simple implementation of registry pattern

Installation

via Composer:

"require": {
  "clean/registry": "*"
}

Example of Usage

$registry = new Registry()

$registry->set('var1', 1);

$var1 = $registry->get('var1');

if ($registry->has('var1')) {
    ...
}