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