src/Core/General/ActionInfo.php
public function getAllowedMethods()
    {
        $result = [];
        if ($this->get) {
            $result[] = HttpMethods::GET;
        }
        if ($this->post) {
            $result[] = HttpMethods::POST;
        }
        if ($this->put) {
            $result[] = HttpMethods::PUT;
        }
        if ($this->path) {
            $result[] = HttpMethods::PATCH;
        }
        if ($this->delete) {
            $result[] = HttpMethods::DELETE;
        }
        if ($this->head) {
            $result[] = HttpMethods::HEAD;
        }
        if ($this->options) {
            $result[] = HttpMethods::OPTIONS;
        }

        return $result;
    }
public function getAllowedMethods()
    {
        $result = [];
        if ($this->get) {
            $result[] = HttpMethods::GET;
        }
        if ($this->post) {
            $result[] = HttpMethods::POST;
        }
        if ($this->put) {
            $result[] = HttpMethods::PUT;
        }
        if ($this->path) {
            $result[] = HttpMethods::PATCH;
        }
        if ($this->delete) {
            $result[] = HttpMethods::DELETE;
        }
        if ($this->head) {
            $result[] = HttpMethods::HEAD;
        }
        if ($this->options) {
            $result[] = HttpMethods::OPTIONS;
        }

        return $result;
    }
public function getAllowedMethods ( ) { $ result = [ ] ; if ( $ this -> get ) { $ result [ ] = HttpMethods :: GET ; } if ( $ this -> post ) { $ result [ ] = HttpMethods :: POST ; } if ( $ this -> put ) { $ result [ ] = HttpMethods :: PUT ; } if ( $ this -> path ) { $ result [ ] = HttpMethods :: PATCH ; } if ( $ this -> delete ) { $ result [ ] = HttpMethods :: DELETE ; } if ( $ this -> head ) { $ result [ ] = HttpMethods :: HEAD ; } if ( $ this -> options ) { $ result [ ] = HttpMethods :: OPTIONS ; } return $ result ; }
Get array of allowed methods for this action

@return string[]
Get array of allowed methods for this action