src/Models/Appointment.php
public function isConfirmableBy($userId)
    {
        return
            $this->isConfirmable() &&
            $this->shouldConfirmBy($userId) &&
            $this->canConfirm($userId);
    }
public function isConfirmableBy($userId)
    {
        return
            $this->isConfirmable() &&
            $this->shouldConfirmBy($userId) &&
            $this->canConfirm($userId);
    }
public function isConfirmableBy ( $ userId ) { return $ this -> isConfirmable ( ) && $ this -> shouldConfirmBy ( $ userId ) && $ this -> canConfirm ( $ userId ) ; }
is Confirmable By user.

@param int $userId

@return bool
is Confirmable By user .