public function buildSwagger()
    {
        $swagger = $this->swaggerConfig;
        $swagger['swagger'] = '2.0';


        $paths = $this->routingProcessor->process();
        if (count($paths) > 0) $swagger['paths'] = $paths;
        $schemes = $this->schemaProcessor->process();
        if (count($schemes) > 0) $swagger['definitions'] = $schemes;


        return json_encode($swagger);
    }
public function buildSwagger()
    {
        $swagger = $this->swaggerConfig;
        $swagger['swagger'] = '2.0';


        $paths = $this->routingProcessor->process();
        if (count($paths) > 0) $swagger['paths'] = $paths;
        $schemes = $this->schemaProcessor->process();
        if (count($schemes) > 0) $swagger['definitions'] = $schemes;


        return json_encode($swagger);
    }
public function buildSwagger ( ) { $ swagger = $ this -> swaggerConfig ; $ swagger [ 'swagger' ] = '2.0' ; $ paths = $ this -> routingProcessor -> process ( ) ; if ( count ( $ paths ) > 0 ) $ swagger [ 'paths' ] = $ paths ; $ schemes = $ this -> schemaProcessor -> process ( ) ; if ( count ( $ schemes ) > 0 ) $ swagger [ 'definitions' ] = $ schemes ; return json_encode ( $ swagger ) ; }
Combines the loose parts to a complete whole, then encodes it in json and returns it

@return string Swagger JSON
Combines the loose parts to a complete whole then encodes it in json and returns it