/** * Sets a new factory class * * @param Factory\FactoryInterface * @return Context\Manager */ public function setFactory(Factory\FactoryInterface $factory) { self::$factory = $factory; return $this; }