QemuUpdateEvent.php 630 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace ModulesGarden\ProxmoxAddon\App\Events\Cloud;
  3. use MGProvision\Proxmox\v2\interfaces\VmInterface;
  4. use ModulesGarden\ProxmoxAddon\App\Models\VmModel;
  5. use ModulesGarden\ProxmoxAddon\Core\Events\Event;
  6. class QemuUpdateEvent extends VmEvent
  7. {
  8. protected $changeVmPassword = true;
  9. /**
  10. * @return bool
  11. */
  12. public function isChangeVmPassword()
  13. {
  14. return $this->changeVmPassword;
  15. }
  16. /**
  17. * @param bool $changeVmPassword
  18. */
  19. public function setChangeVmPassword($changeVmPassword)
  20. {
  21. $this->changeVmPassword = $changeVmPassword;
  22. return $this;
  23. }
  24. }