Controllers\xAPI\BaseController::selectMethod PHP Method

selectMethod() public method

Selects a method to be called.
public selectMethod ( ) : mixed
return mixed Result of the method.
    public function selectMethod()
    {
        switch ($this->method) {
            case 'HEAD':
            case 'GET':
                return $this->get();
            case 'PUT':
                return $this->update();
            case 'POST':
                return $this->store();
            case 'DELETE':
                return $this->destroy();
        }
    }