Changes.php 977 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. use OCP\DB\Types;
  10. /**
  11. * Class Changes
  12. *
  13. * @package OC\Updater
  14. * @method string getVersion()=1
  15. * @method void setVersion(string $version)
  16. * @method string getEtag()
  17. * @method void setEtag(string $etag)
  18. * @method int getLastCheck()
  19. * @method void setLastCheck(int $lastCheck)
  20. * @method string getData()
  21. * @method void setData(string $data)
  22. */
  23. class Changes extends Entity {
  24. /** @var string */
  25. protected $version = '';
  26. /** @var string */
  27. protected $etag = '';
  28. /** @var int */
  29. protected $lastCheck = 0;
  30. /** @var string */
  31. protected $data = '';
  32. public function __construct() {
  33. $this->addType('version', 'string');
  34. $this->addType('etag', 'string');
  35. $this->addType('lastCheck', Types::INTEGER);
  36. $this->addType('data', 'string');
  37. }
  38. }