FakeManager.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 getNumberOfCommentsForObject($objectType, $objectId, \DateTime $notOlderThan = null) {}
  20. public function create($actorType, $actorId, $objectType, $objectId) {}
  21. public function delete($id) {}
  22. public function save(IComment $comment) {}
  23. public function deleteReferencesOfActor($actorType, $actorId) {}
  24. public function deleteCommentsAtObject($objectType, $objectId) {}
  25. public function setReadMark($objectType, $objectId, \DateTime $dateTime, IUser $user) {}
  26. public function getReadMark($objectType, $objectId, IUser $user) {}
  27. public function deleteReadMarksFromUser(IUser $user) {}
  28. public function deleteReadMarksOnObject($objectType, $objectId) {}
  29. public function registerEventHandler(\Closure $closure) {}
  30. public function registerDisplayNameResolver($type, \Closure $closure) {}
  31. public function resolveDisplayName($type, $id) {}
  32. public function getNumberOfUnreadCommentsForFolder($folderId, IUser $user) {}
  33. public function getActorsInTree($id) {}
  34. }