Пример #1
0
 /**
  * Constructor...
  *
  * @param String $namespace The namespace to nest values within
  * @param \r8\iface\Session $decorated The object being decorated
  */
 public function __construct($namespace, \r8\iface\Session $decorated)
 {
     parent::__construct($decorated);
     $namespace = \r8\indexVal($namespace);
     if (\r8\IsEmpty($namespace)) {
         throw new \r8\Exception\Argument(0, "Namespace", "Must be a valid key");
     }
     $this->namespace = $namespace;
 }
Пример #2
0
 /**
  * Constructor...
  *
  * @param \r8\iface\Transform $transform The transformation to apply to
  *      values as the enter and leave this session
  * @param \r8\iface\Session $decorated The object being decorated
  */
 public function __construct(\r8\iface\Transform $transform, \r8\iface\Session $decorated)
 {
     parent::__construct($decorated);
     $this->transform = $transform;
 }