src/BuildingStrategy/Impl/FactoryProductBuildingStrategyTpl.php
protected function findFactoryMethod(
        ReflectionClass $reflectedFactoryClass,    
        MethodSelector $factoryMethodSelector
    ) {
        $allMatchingMethods = $this->findMatchingMethods(
            $reflectedFactoryClass,
            $factoryMethodSelector
        );
        $this->throwExceptionIfWrongNumberOfFactoryMethods($allMatchingMethods);
        return $allMatchingMethods[0];
    }
protected function findFactoryMethod(
        ReflectionClass $reflectedFactoryClass,    
        MethodSelector $factoryMethodSelector
    ) {
        $allMatchingMethods = $this->findMatchingMethods(
            $reflectedFactoryClass,
            $factoryMethodSelector
        );
        $this->throwExceptionIfWrongNumberOfFactoryMethods($allMatchingMethods);
        return $allMatchingMethods[0];
    }
protected function findFactoryMethod ( ReflectionClass $ reflectedFactoryClass , MethodSelector $ factoryMethodSelector ) { $ allMatchingMethods = $ this -> findMatchingMethods ( $ reflectedFactoryClass , $ factoryMethodSelector ) ; $ this -> throwExceptionIfWrongNumberOfFactoryMethods ( $ allMatchingMethods ) ; return $ allMatchingMethods [ 0 ] ; }
Gets the factory method. The selector must pick exactly 1 object.

@param ReflectionClass $reflectedFactoryClass
@param MethodSelector $factoryMethodSelector
@return ReflectionMethod
Gets the factory method . The selector must pick exactly 1 object .