src/Models/Appointment.php
public function shouldConfirmBy($userId)
    {
        return ($this->isSelfIssued() && $this->isOwner($userId)) || $this->isIssuer($userId);
    }
public function shouldConfirmBy($userId)
    {
        return ($this->isSelfIssued() && $this->isOwner($userId)) || $this->isIssuer($userId);
    }
public function shouldConfirmBy ( $ userId ) { return ( $ this -> isSelfIssued ( ) && $ this -> isOwner ( $ userId ) ) || $ this -> isIssuer ( $ userId ) ; }
Determine if the queried userId may confirm the appointment or not.

@param int $userId

@return bool
Determine if the queried userId may confirm the appointment or not .