Controllers\xAPI\BaseController::selectMethod PHP 메소드

selectMethod() 공개 메소드

Selects a method to be called.
public selectMethod ( ) : mixed
리턴 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();
        }
    }