pool)) { $this->pool[$name] = new CharacterFlyweight($name); } return $this->pool[$name]; } /** * @return int */ public function totalNumber() { return count($this->pool); } }