| 1 | <?php |
||
| 25 | abstract class AbstractResponse { |
||
| 26 | |||
| 27 | use RateLimitTrait; |
||
| 28 | use StringRawResponseTrait; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Medias. |
||
| 32 | * |
||
| 33 | * @var AbstractMedia[] |
||
| 34 | */ |
||
| 35 | private $medias; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Constructor. |
||
| 39 | */ |
||
| 40 | public function __construct() { |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Add a media. |
||
| 46 | * |
||
| 47 | * @param AbstractMedia $media The media. |
||
| 48 | * @return AbstractResponse Returns this response. |
||
| 49 | */ |
||
| 50 | protected function addMedia(AbstractMedia $media): AbstractResponse { |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Get the medias. |
||
| 57 | * |
||
| 58 | * @return AbstractMedia[] Returns the medias. |
||
| 59 | */ |
||
| 60 | protected function getMedias(): array { |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Set the medias. |
||
| 66 | * |
||
| 67 | * @param AbstractMedia[] $medias The medias. |
||
| 68 | * @return AbstractResponse Returns this response. |
||
| 69 | */ |
||
| 70 | protected function setMedias(array $medias): AbstractResponse { |
||
| 74 | } |
||
| 75 |