<?php defined('SYSPATH') OR die('No direct access to this file is allowed.');
/**
* This is the main Noostr end-point class.
*
* @package Noostr
* @subpackage Classes
*/
class Noostr {
private $data = array();
public function __set($name, $value = '') {
$this->data[$name] = $value;
}
public function __get($name) {
$return = false;
if (is_array($this->data)) {
if (array_key_exists($name, $this->data)) {
$return = $this->data[$name];
}
}
return $return;
}
public function load($array) {
$this->data = array_merge($this->data, $array);
}
}