public function addMethod(Method $method)
    {
        $this->methods[$method->getType()] = $method;

        foreach ($this->getSecuritySchemes() as $securityScheme) {
            $method->addSecurityScheme($securityScheme);
        }
    }
public function addMethod(Method $method)
    {
        $this->methods[$method->getType()] = $method;

        foreach ($this->getSecuritySchemes() as $securityScheme) {
            $method->addSecurityScheme($securityScheme);
        }
    }
public function addMethod ( Method $ method ) { $ this -> methods [ $ method -> getType ( ) ] = $ method ; foreach ( $ this -> getSecuritySchemes ( ) as $ securityScheme ) { $ method -> addSecurityScheme ( $ securityScheme ) ; } }
Add a method
Add a method