src/Behat/Behat/Snippet/AggregateSnippet.php
public function getUsedClasses()
    {
        if (empty($this->snippets)) {
            return array();
        }

        return array_unique(
            call_user_func_array(
                'array_merge',
                array_map(
                    function (Snippet $snippet) {
                        if (!$snippet instanceof ContextSnippet) {
                            return array();
                        }

                        return $snippet->getUsedClasses();
                    },
                    $this->snippets
                )
            )
        );
    }
public function getUsedClasses()
    {
        if (empty($this->snippets)) {
            return array();
        }

        return array_unique(
            call_user_func_array(
                'array_merge',
                array_map(
                    function (Snippet $snippet) {
                        if (!$snippet instanceof ContextSnippet) {
                            return array();
                        }

                        return $snippet->getUsedClasses();
                    },
                    $this->snippets
                )
            )
        );
    }
public function getUsedClasses ( ) { if ( empty ( $ this -> snippets ) ) { return array ( ) ; } return array_unique ( call_user_func_array ( 'array_merge' , array_map ( function ( Snippet $ snippet ) { if ( ! $ snippet instanceof ContextSnippet ) { return array ( ) ; } return $ snippet -> getUsedClasses ( ) ; } , $ this -> snippets ) ) ) ; }
Returns the classes used in the snippet which should be imported.

@return string[]
Returns the classes used in the snippet which should be imported .