/** * Get the static instance of this factory. * * @return SpyFactory The static factory. */ public static function instance() { if (!self::$instance) { self::$instance = new self(Sequencer::sequence('spy-label'), CallFactory::instance(), Invoker::instance(), GeneratorSpyFactory::instance(), IterableSpyFactory::instance()); } return self::$instance; }