FakeManager.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace Test\Comments;
  3. use OCP\Comments\IComment;
  4. use OCP\Comments\ICommentsManager;
  5. use OCP\IUser;
  6. /**
  7. * Class FakeManager
  8. */
  9. class FakeManager implements ICommentsManager {
  10. public function get($id) {}
  11. public function getTree($id, $limit = 0, $offset = 0) {}
  12. public function getForObject(
  13. $objectType,
  14. $objectId,
  15. $limit = 0,
  16. $offset = 0,
  17. \DateTime $notOlderThan = null
  18. ) {}
  19. public function getForObjectSince(
  20. string $objectType,
  21. string $objectId,
  22. int $lastKnownCommentId,
  23. string $sortDirection = 'asc',
  24. int $limit = 30
  25. ): array { return []; }
  26. public function getNumberOfCommentsForObject($objectType, $objectId, \DateTime $notOlderThan = null, $verb = '') {}
  27. public function search(string $search, string $objectType, string $objectId, string $verb, int $offset, int $limit = 50): array {
  28. return [];
  29. }
  30. public function create($actorType, $actorId, $objectType, $objectId) {}
  31. public function delete($id) {}
  32. public function save(IComment $comment) {}
  33. public function deleteReferencesOfActor($actorType, $actorId) {}
  34. public function deleteCommentsAtObject($objectType, $objectId) {}
  35. public function setReadMark($objectType, $objectId, \DateTime $dateTime, IUser $user) {}
  36. public function getReadMark($objectType, $objectId, IUser $user) {}
  37. public function deleteReadMarksFromUser(IUser $user) {}
  38. public function deleteReadMarksOnObject($objectType, $objectId) {}
  39. public function registerEventHandler(\Closure $closure) {}
  40. public function registerDisplayNameResolver($type, \Closure $closure) {}
  41. public function resolveDisplayName($type, $id) {}
  42. public function getNumberOfUnreadCommentsForFolder($folderId, IUser $user) {}
  43. public function getActorsInTree($id) {}
  44. }