private function getRequirements(string $docComment): array
    {
        return array_map(
            function($tag) {
                preg_match('#@require ([^ ]*)#', $tag, $match);

                return $match[1];
            },
            array_filter(
                array_map(
                    'trim',
                    explode(
                        "\n",
                        str_replace(
                            "\r\n",
                            "\n",
                            $docComment
                        )
                    )
                ),
                function($docline) {
                    return 0 === strpos($docline, '* @require');
                }
            )
        );
    }
private function getRequirements(string $docComment): array
    {
        return array_map(
            function($tag) {
                preg_match('#@require ([^ ]*)#', $tag, $match);

                return $match[1];
            },
            array_filter(
                array_map(
                    'trim',
                    explode(
                        "\n",
                        str_replace(
                            "\r\n",
                            "\n",
                            $docComment
                        )
                    )
                ),
                function($docline) {
                    return 0 === strpos($docline, '* @require');
                }
            )
        );
    }
private function getRequirements ( string $ docComment ) : array { return array_map ( function ( $ tag ) { preg_match ( '#@require ([^ ]*)#' , $ tag , $ match ) ; return $ match [ 1 ] ; } , array_filter ( array_map ( 'trim' , explode ( "\n" , str_replace ( "\r\n" , "\n" , $ docComment ) ) ) , function ( $ docline ) { return 0 === strpos ( $ docline , '* @require' ) ; } ) ) ; }
Get required interfaces

@param string $docComment

@return array
Get required interfaces