| Total Complexity | 4 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class DeprecationWarning |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $message; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string|null |
||
| 25 | */ |
||
| 26 | protected $file; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var int|null |
||
| 30 | */ |
||
| 31 | protected $line; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * DeprecationWarning constructor. |
||
| 35 | * |
||
| 36 | * @param string $message |
||
| 37 | * @param null|string $file |
||
| 38 | * @param int|null $line |
||
| 39 | */ |
||
| 40 | public function __construct(string $message, ?string $file = null, ?int $line = null) |
||
| 41 | { |
||
| 42 | $this->message = $message; |
||
| 43 | $this->file = $file; |
||
| 44 | $this->line = $line; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function getMessage(): string |
||
| 51 | { |
||
| 52 | return $this->message; |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return null|string |
||
| 57 | */ |
||
| 58 | public function getFile(): ?string |
||
| 59 | { |
||
| 60 | return $this->file; |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return int|null |
||
| 65 | */ |
||
| 66 | public function getLine(): ?int |
||
| 69 | } |
||
| 70 | } |
||
| 71 |