A super easy PHP Framework for web development!
https://github.com/exacti/phacil-framework
17 lines
300 B
17 lines
300 B
6 years ago
|
<?php
|
||
|
final class Registry {
|
||
|
private $data = array();
|
||
|
|
||
|
public function get($key) {
|
||
|
return (isset($this->data[$key]) ? $this->data[$key] : NULL);
|
||
|
}
|
||
|
|
||
|
public function set($key, $value) {
|
||
|
$this->data[$key] = $value;
|
||
|
}
|
||
|
|
||
|
public function has($key) {
|
||
|
return isset($this->data[$key]);
|
||
|
}
|
||
|
}
|
||
|
?>
|