| 1 | <?php |
||
| 13 | class NewsResponse extends AbstractResponse |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var News |
||
| 18 | */ |
||
| 19 | private $news; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * NewsResponse constructor. |
||
| 23 | * @param \stdClass $response |
||
| 24 | * @throws NotFoundException |
||
| 25 | * @throws \Igorsgm\TibiaDataApi\Exceptions\ImmutableException |
||
| 26 | * @throws \Exception |
||
| 27 | */ |
||
| 28 | public function __construct(\stdClass $response) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return News |
||
| 46 | */ |
||
| 47 | public function getNews(): News |
||
| 51 | } |
||
| 52 |