src/Behat/Behat/HelperContainer/BuiltInServiceContainer.php
private function getAndValidateFactoryMethod(ReflectionClass $reflection, array $schema)
    {
        if (!isset($schema['factory_method'])) {
            return null;
        }

        $factoryMethod = $schema['factory_method'];
        $this->assertFactoryMethodExists($reflection, $factoryMethod);
        $method = $reflection->getMethod($factoryMethod);
        $this->assertFactoryMethodIsStatic($method);

        return $method;
    }
private function getAndValidateFactoryMethod(ReflectionClass $reflection, array $schema)
    {
        if (!isset($schema['factory_method'])) {
            return null;
        }

        $factoryMethod = $schema['factory_method'];
        $this->assertFactoryMethodExists($reflection, $factoryMethod);
        $method = $reflection->getMethod($factoryMethod);
        $this->assertFactoryMethodIsStatic($method);

        return $method;
    }
private function getAndValidateFactoryMethod ( ReflectionClass $ reflection , array $ schema ) { if ( ! isset ( $ schema [ 'factory_method' ] ) ) { return null ; } $ factoryMethod = $ schema [ 'factory_method' ] ; $ this -> assertFactoryMethodExists ( $ reflection , $ factoryMethod ) ; $ method = $ reflection -> getMethod ( $ factoryMethod ) ; $ this -> assertFactoryMethodIsStatic ( $ method ) ; return $ method ; }
Gets and validates a factory method.

@param ReflectionClass $reflection
@param array           $schema

@return null|ReflectionMethod
Gets and validates a factory method .