/** * Append value to a stream * * @param mixed $val */ public function append($val) { $ref =& $this->value->getRef(); $ref .= (string) $val; $this->value->touch(); }
/** * Signal, that value is updated by external code. * * Should be used together with getRef() */ public function touch() { $this->_memContainer->touch(); }