src/Behat/Behat/Context/Suite/Setup/SuiteWithContextsSetup.php
private function generateClass(Suite $suite, $class)
    {
        $content = null;
        foreach ($this->classGenerators as $generator) {
            if ($generator->supportsSuiteAndClass($suite, $class)) {
                $content = $generator->generateClass($suite, $class);
            }
        }

        return $content;
    }
private function generateClass(Suite $suite, $class)
    {
        $content = null;
        foreach ($this->classGenerators as $generator) {
            if ($generator->supportsSuiteAndClass($suite, $class)) {
                $content = $generator->generateClass($suite, $class);
            }
        }

        return $content;
    }
private function generateClass ( Suite $ suite , $ class ) { $ content = null ; foreach ( $ this -> classGenerators as $ generator ) { if ( $ generator -> supportsSuiteAndClass ( $ suite , $ class ) ) { $ content = $ generator -> generateClass ( $ suite , $ class ) ; } } return $ content ; }
Generates class using registered class generators.

@param Suite  $suite
@param string $class

@return null|string
Generates class using registered class generators .