public function injectObjectB(SingletonClassB $objectB) { $this->injectionRuns++; $this->objectB = $objectB; }