container = $container; } public function get(string $name): BaseMapper { if (!class_exists($name)) { throw new \InvalidArgumentException(); } return $this->container->get($name); } }