Response.php 522 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace addons\epay\library;
  3. class Response extends \Symfony\Component\HttpFoundation\Response implements \JsonSerializable, \Serializable
  4. {
  5. public function __toString()
  6. {
  7. return $this->getContent();
  8. }
  9. public function jsonSerialize()
  10. {
  11. return $this->getContent();
  12. }
  13. public function serialize()
  14. {
  15. return serialize($this->content);
  16. }
  17. public function unserialize($serialized)
  18. {
  19. return $this->content = unserialize($serialized);
  20. }
  21. }