public function newInstance() { if ($this->prototype === null) { $this->prototype = unserialize(sprintf('O:%d:"%s":0:{}', strlen($this->name), $this->name)); } return clone $this->prototype; }