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.
27 lines
522 B
27 lines
522 B
1 year ago
|
<?php
|
||
|
|
||
|
namespace addons\epay\library;
|
||
|
|
||
|
class Response extends \Symfony\Component\HttpFoundation\Response implements \JsonSerializable, \Serializable
|
||
|
{
|
||
|
public function __toString()
|
||
|
{
|
||
|
return $this->getContent();
|
||
|
}
|
||
|
|
||
|
public function jsonSerialize()
|
||
|
{
|
||
|
return $this->getContent();
|
||
|
}
|
||
|
|
||
|
public function serialize()
|
||
|
{
|
||
|
return serialize($this->content);
|
||
|
}
|
||
|
|
||
|
public function unserialize($serialized)
|
||
|
{
|
||
|
return $this->content = unserialize($serialized);
|
||
|
}
|
||
|
}
|