protected function determineMethod()
    {
        $methods = [
            'block'         => ['unblock', 'block'],
            'delete'        => ['restore', 'delete'],
            'activate'      => ['activate'],
            'resetPassword' => ['resetPassword'],
            'resendInvite'  => ['resendInvite'],
            'revokeInvite'  => ['revokeInvite'],
        ];

        $this->method = array_get($methods, $this->status . '.' . $this->action);
    }
protected function determineMethod()
    {
        $methods = [
            'block'         => ['unblock', 'block'],
            'delete'        => ['restore', 'delete'],
            'activate'      => ['activate'],
            'resetPassword' => ['resetPassword'],
            'resendInvite'  => ['resendInvite'],
            'revokeInvite'  => ['revokeInvite'],
        ];

        $this->method = array_get($methods, $this->status . '.' . $this->action);
    }
protected function determineMethod ( ) { $ methods = [ 'block' => [ 'unblock' , 'block' ] , 'delete' => [ 'restore' , 'delete' ] , 'activate' => [ 'activate' ] , 'resetPassword' => [ 'resetPassword' ] , 'resendInvite' => [ 'resendInvite' ] , 'revokeInvite' => [ 'revokeInvite' ] , ] ; $ this -> method = array_get ( $ methods , $ this -> status . '.' . $ this -> action ) ; }
Based on the status and action, determine the method
to call on the user object.
Based on the status and action determine the method to call on the user object .