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