src/Comodojo/Dispatcher/Service/AbstractService.php
public function getImplementedMethods() {

        $supported_methods = $this->getConfiguration()->get('supported-http-methods');

        if ( is_null($supported_methods) ) $supported_methods = self::$supported_methods;

        if ( method_exists($this, 'any') ) {

            return $supported_methods;

        }

        $implemented_methods = [];

        foreach ( $supported_methods as $method ) {

            if ( method_exists($this, strtolower($method)) ) array_push($implemented_methods, $method);

        }

        return $implemented_methods;

    }
public function getImplementedMethods() {

        $supported_methods = $this->getConfiguration()->get('supported-http-methods');

        if ( is_null($supported_methods) ) $supported_methods = self::$supported_methods;

        if ( method_exists($this, 'any') ) {

            return $supported_methods;

        }

        $implemented_methods = [];

        foreach ( $supported_methods as $method ) {

            if ( method_exists($this, strtolower($method)) ) array_push($implemented_methods, $method);

        }

        return $implemented_methods;

    }
public function getImplementedMethods ( ) { $ supported_methods = $ this -> getConfiguration ( ) -> get ( 'supported-http-methods' ) ; if ( is_null ( $ supported_methods ) ) $ supported_methods = self :: $ supported_methods ; if ( method_exists ( $ this , 'any' ) ) { return $ supported_methods ; } $ implemented_methods = [ ] ; foreach ( $ supported_methods as $ method ) { if ( method_exists ( $ this , strtolower ( $ method ) ) ) array_push ( $ implemented_methods , $ method ) ; } return $ implemented_methods ; }
Get service-implemented HTTP methods

@return  array   Service implemented methods, in uppercase
Get service - implemented HTTP methods