RecentContact.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. /**
  10. * @method void setActorUid(string $uid)
  11. * @method string|null getActorUid()
  12. * @method void setUid(string $uid)
  13. * @method string|null getUid()
  14. * @method void setEmail(string $email)
  15. * @method string|null getEmail()
  16. * @method void setFederatedCloudId(string $federatedCloudId)
  17. * @method string|null getFederatedCloudId()
  18. * @method void setCard(string $card)
  19. * @method string getCard()
  20. * @method void setLastContact(int $lastContact)
  21. * @method int getLastContact()
  22. */
  23. class RecentContact extends Entity {
  24. protected string $actorUid = '';
  25. protected ?string $uid = null;
  26. protected ?string $email = null;
  27. protected ?string $federatedCloudId = null;
  28. protected string $card = '';
  29. protected int $lastContact = -1;
  30. public function __construct() {
  31. $this->addType('actorUid', 'string');
  32. $this->addType('uid', 'string');
  33. $this->addType('email', 'string');
  34. $this->addType('federatedCloudId', 'string');
  35. $this->addType('card', 'blob');
  36. $this->addType('lastContact', 'int');
  37. }
  38. }