proxitok/app/Models/ErrorTemplate.php

17 lines
408 B
PHP
Raw Normal View History

2022-02-05 23:58:30 +00:00
<?php
namespace App\Models;
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 = '';
2022-02-05 23:58:30 +00:00
2022-09-03 12:01:03 +00:00
function __construct(int $http_code, string $msg, ?int $tiktok_code = null) {
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;
2022-02-05 23:58:30 +00:00
}
}