src/Behat/Behat/Definition/Pattern/PatternTransformer.php
public function generatePattern($type, $stepText)
    {
        foreach ($this->policies as $policy) {
            if ($policy->supportsPatternType($type)) {
                return $policy->generatePattern($stepText);
            }
        }

        throw new UnsupportedPatternTypeException(sprintf('Can not find policy for a pattern type `%s`.', $type), $type);
    }
public function generatePattern($type, $stepText)
    {
        foreach ($this->policies as $policy) {
            if ($policy->supportsPatternType($type)) {
                return $policy->generatePattern($stepText);
            }
        }

        throw new UnsupportedPatternTypeException(sprintf('Can not find policy for a pattern type `%s`.', $type), $type);
    }
public function generatePattern ( $ type , $ stepText ) { foreach ( $ this -> policies as $ policy ) { if ( $ policy -> supportsPatternType ( $ type ) ) { return $ policy -> generatePattern ( $ stepText ) ; } } throw new UnsupportedPatternTypeException ( sprintf ( 'Can not find policy for a pattern type `%s`.' , $ type ) , $ type ) ; }
Generates pattern.

@param string $type
@param string $stepText

@return Pattern

@throws UnsupportedPatternTypeException
Generates pattern .