RecentContact.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\ContactsInteraction\Db;
  8. use OCP\AppFramework\Db\Entity;
  9. use OCP\DB\Types;
  10. /**
  11. * @method void setActorUid(string $uid)
  12. * @method string|null getActorUid()
  13. * @method void setUid(string $uid)
  14. * @method string|null getUid()
  15. * @method void setEmail(string $email)
  16. * @method string|null getEmail()
  17. * @method void setFederatedCloudId(string $federatedCloudId)
  18. * @method string|null getFederatedCloudId()
  19. * @method void setCard(string $card)
  20. * @method string getCard()
  21. * @method void setLastContact(int $lastContact)
  22. * @method int getLastContact()
  23. */
  24. class RecentContact extends Entity {
  25. protected string $actorUid = '';
  26. protected ?string $uid = null;
  27. protected ?string $email = null;
  28. protected ?string $federatedCloudId = null;
  29. protected string $card = '';
  30. protected int $lastContact = -1;
  31. public function __construct() {
  32. $this->addType('actorUid', Types::STRING);
  33. $this->addType('uid', Types::STRING);
  34. $this->addType('email', Types::STRING);
  35. $this->addType('federatedCloudId', Types::STRING);
  36. $this->addType('card', Types::BLOB);
  37. $this->addType('lastContact', Types::INTEGER);
  38. }
  39. }