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.
 
 
 
 
 

53 lines
1.3 KiB

  1. <?php
  2. namespace dokuwiki\Remote\Response;
  3. /**
  4. * Represents a single change in a wiki page
  5. */
  6. class PageChange extends ApiResponse
  7. {
  8. /** @var string The page ID */
  9. public $id;
  10. /** @var int The revision (timestamp) of this change */
  11. public $revision;
  12. /** @var string The author of this change */
  13. public $author;
  14. /** @var string The IP address from where this change was made */
  15. public $ip;
  16. /** @var string The summary of this change */
  17. public $summary;
  18. /** @var string The type of this change */
  19. public $type;
  20. /** @var int The change in bytes */
  21. public $sizechange;
  22. /**
  23. * PageChange constructor.
  24. *
  25. * @param string $id
  26. * @param int $revision
  27. * @param string $author
  28. * @param string $ip
  29. * @param string $summary
  30. * @param string $type
  31. * @param int $sizechange
  32. */
  33. public function __construct($id, $revision, $author, $ip, $summary, $type, $sizechange)
  34. {
  35. $this->id = $id;
  36. $this->revision = $revision;
  37. $this->author = $author;
  38. $this->ip = $ip;
  39. $this->summary = $summary;
  40. $this->type = $type;
  41. $this->sizechange = $sizechange;
  42. }
  43. /** @inheritdoc */
  44. public function __toString()
  45. {
  46. return $this->id . '@' . $this->revision;
  47. }
  48. }