LxcUpdateEvent.php 536 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace ModulesGarden\ProxmoxAddon\App\Events\Vps;
  3. use MGProvision\Proxmox\v2\interfaces\VmInterface;
  4. use ModulesGarden\ProxmoxAddon\Core\Events\Event;
  5. class LxcUpdateEvent extends Event
  6. {
  7. protected $vm;
  8. public function __construct(VmInterface $vm)
  9. {
  10. $this->vm = $vm;
  11. }
  12. /**
  13. * @return VmInterface
  14. */
  15. public function getVm()
  16. {
  17. return $this->vm;
  18. }
  19. /**
  20. * @param VmInterface $vm
  21. */
  22. public function setVm($vm)
  23. {
  24. $this->vm = $vm;
  25. }
  26. }