protected function handler(IResource $resource) { $source = Neon::decode($resource->get()); $root = new Node(); $this->walk($source, $root); return $root; }
/** * data směrem ven z aplikace (tzn. směrem k uživateli) * * @param mixed $value * * @return array */ public function output($value) { return Neon::encode($value); }
public function write($string) { fwrite($this->getHandle(), Neon::encode($string) . "\n"); return $this; }