Guest User

Untitled

a guest
Dec 11th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?php
  2.  
  3. // Message class
  4. class GetPostQuery
  5. {
  6. private $limit;
  7. private $offset;
  8.  
  9. public function __construct(int $offset = 0, int $limit = 10)
  10. {
  11. $this->offset = $offset;
  12. $this->limit = $limit;
  13. }
  14.  
  15. public function getLimit(): int
  16. {
  17. return $this->limit;
  18. }
  19.  
  20. public function getOffset(): int
  21. {
  22. return $this->offset;
  23. }
  24. }
Add Comment
Please, Sign In to add comment