src/Models/Appointment.php
public function canCancel($userId)
    {
        return $this->isOwner($userId) ||
            ($this->isIssuer($userId) && $this->isOnTimeToCancel()) ||
            ($this->isTarget($userId) && $this->isOnTimeToCancel());
    }
public function canCancel($userId)
    {
        return $this->isOwner($userId) ||
            ($this->isIssuer($userId) && $this->isOnTimeToCancel()) ||
            ($this->isTarget($userId) && $this->isOnTimeToCancel());
    }
public function canCancel ( $ userId ) { return $ this -> isOwner ( $ userId ) || ( $ this -> isIssuer ( $ userId ) && $ this -> isOnTimeToCancel ( ) ) || ( $ this -> isTarget ( $ userId ) && $ this -> isOnTimeToCancel ( ) ) ; }
can be canceled by user.

@param int $userId

@return bool
can be canceled by user .