PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
ErrorRecord.php
1<?php
2
3declare(strict_types=1);
4
5namespace pocketmine\errorhandler;
6
7final class ErrorRecord{
8
10 private $severity;
12 private $message;
14 private $file;
16 private $line;
17
18 public function __construct(int $severity, string $message, string $file, int $line){
19 $this->severity = $severity;
20 $this->message = $message;
21 $this->file = $file;
22 $this->line = $line;
23 }
24
25 public function getSeverity() : int{
26 return $this->severity;
27 }
28
29 public function getMessage() : string{
30 return $this->message;
31 }
32
33 public function getFile() : string{
34 return $this->file;
35 }
36
37 public function getLine() : int{
38 return $this->line;
39 }
40}