| 1 | <?php |
||
| 23 | abstract class AbstractResponse { |
||
| 24 | |||
| 25 | use RateLimitTrait; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Medias. |
||
| 29 | * |
||
| 30 | * @var AbstractMedia[] |
||
| 31 | */ |
||
| 32 | private $medias; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Raw response. |
||
| 36 | * |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | private $rawResponse; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Constructor. |
||
| 43 | */ |
||
| 44 | public function __construct() { |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Add a media. |
||
| 50 | * |
||
| 51 | * @param AbstractMedia $media The media. |
||
| 52 | * @return AbstractResponse Returns this response. |
||
| 53 | */ |
||
| 54 | protected function addMedia(AbstractMedia $media) { |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Get the medias. |
||
| 61 | * |
||
| 62 | * @return AbstractMedia[] Returns the medias. |
||
| 63 | */ |
||
| 64 | protected function getMedias() { |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Get the raw response. |
||
| 70 | * |
||
| 71 | * @return string Returns the raw response. |
||
| 72 | */ |
||
| 73 | public function getRawResponse() { |
||
| 76 | |||
| 77 | /** |
||
| 78 | * Set the medias. |
||
| 79 | * |
||
| 80 | * @param AbstractMedia[] $medias The medias. |
||
| 81 | * @return AbstractResponse Returns this response. |
||
| 82 | */ |
||
| 83 | protected function setMedias(array $medias) { |
||
| 87 | |||
| 88 | /** |
||
| 89 | * Set the raw response. |
||
| 90 | * |
||
| 91 | * @param string $rawResponse The raw response. |
||
| 92 | * @return AbstractResponse Returns this response. |
||
| 93 | */ |
||
| 94 | public function setRawResponse($rawResponse) { |
||
| 98 | } |
||
| 99 |