You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FakeManager.php 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. }
  12. public function getTree($id, $limit = 0, $offset = 0) {
  13. }
  14. public function getForObject(
  15. $objectType,
  16. $objectId,
  17. $limit = 0,
  18. $offset = 0,
  19. \DateTime $notOlderThan = null
  20. ) {
  21. }
  22. public function getForObjectSince(
  23. string $objectType,
  24. string $objectId,
  25. int $lastKnownCommentId,
  26. string $sortDirection = 'asc',
  27. int $limit = 30
  28. ): array {
  29. return [];
  30. }
  31. public function getNumberOfCommentsForObject($objectType, $objectId, \DateTime $notOlderThan = null, $verb = '') {
  32. }
  33. public function search(string $search, string $objectType, string $objectId, string $verb, int $offset, int $limit = 50): array {
  34. return [];
  35. }
  36. public function create($actorType, $actorId, $objectType, $objectId) {
  37. }
  38. public function delete($id) {
  39. }
  40. public function save(IComment $comment) {
  41. }
  42. public function deleteReferencesOfActor($actorType, $actorId) {
  43. }
  44. public function deleteCommentsAtObject($objectType, $objectId) {
  45. }
  46. public function setReadMark($objectType, $objectId, \DateTime $dateTime, IUser $user) {
  47. }
  48. public function getReadMark($objectType, $objectId, IUser $user) {
  49. }
  50. public function deleteReadMarksFromUser(IUser $user) {
  51. }
  52. public function deleteReadMarksOnObject($objectType, $objectId) {
  53. }
  54. public function registerEventHandler(\Closure $closure) {
  55. }
  56. public function registerDisplayNameResolver($type, \Closure $closure) {
  57. }
  58. public function resolveDisplayName($type, $id) {
  59. }
  60. public function getNumberOfUnreadCommentsForFolder($folderId, IUser $user) {
  61. }
  62. public function getActorsInTree($id) {
  63. }
  64. public function load(): void {
  65. }
  66. }