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