proxitok/app/Models/ErrorTemplate.php

21 lines
538 B
PHP
Raw Normal View History

2022-02-05 23:58:30 +00:00
<?php
namespace App\Models;
use TikScraper\Models\Response;
2022-02-05 23:58:30 +00:00
class ErrorTemplate extends BaseTemplate {
2022-09-03 12:01:03 +00:00
public int $http_code = 502;
public ?int $tiktok_code = -1;
public string $msg = '';
public ?Response $response = null;
2022-02-05 23:58:30 +00:00
function __construct(int $http_code, string $msg, ?int $tiktok_code = null, ?Response $response) {
2022-02-05 23:58:30 +00:00
parent::__construct('Error');
2022-09-03 12:01:03 +00:00
$this->http_code = $http_code;
$this->msg = $msg;
$this->tiktok_code = $tiktok_code;
$this->response = $response;
2022-02-05 23:58:30 +00:00
}
}