Changes.php 950 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OC\Updater;
  8. use OCP\AppFramework\Db\Entity;
  9. /**
  10. * Class Changes
  11. *
  12. * @package OC\Updater
  13. * @method string getVersion()=1
  14. * @method void setVersion(string $version)
  15. * @method string getEtag()
  16. * @method void setEtag(string $etag)
  17. * @method int getLastCheck()
  18. * @method void setLastCheck(int $lastCheck)
  19. * @method string getData()
  20. * @method void setData(string $data)
  21. */
  22. class Changes extends Entity {
  23. /** @var string */
  24. protected $version = '';
  25. /** @var string */
  26. protected $etag = '';
  27. /** @var int */
  28. protected $lastCheck = 0;
  29. /** @var string */
  30. protected $data = '';
  31. public function __construct() {
  32. $this->addType('version', 'string');
  33. $this->addType('etag', 'string');
  34. $this->addType('lastCheck', 'int');
  35. $this->addType('data', 'string');
  36. }
  37. }