proxitok/app/Models/ErrorTemplate.php

21 lines
538 B
PHP
Raw Permalink Normal View History

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