/** * @return Stream */ protected function getStream() { if (!$this->id) { $this->id = str_replace(__CLASS__ . '_', '', get_class($this)); } return Factory::getInstance()->getStream($this->id); }
/** * */ public function __destruct() { Factory::getInstance()->release($this->id); }