PluginProbe
Billingo Official for WooCommerce / 4.2.9
Billingo Official for WooCommerce v4.2.9
4.3.3 4.3.2 trunk 0.0.2 1.0.0 2.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 All 82 releases
billingo / src / Exceptions / BadContentException.php

BadContentException.php in Billingo Official for WooCommerce 4.2.9, at src/Exceptions/BadContentException.php

33 lines 623 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace App\Billingo\Exceptions;
4
5 use App\Billingo\Service\SelfTest;
6 use Exception;
7
8 class BadContentException extends BillingoException
9 {
10
11 public function __construct(
12 private readonly SelfTest $selfTest,
13 int $code = 0,
14 Exception $previous = null
15 ) {
16 parent::__construct($code, $previous);
17 }
18 public function getErrorMessage(): string
19 {
20 return 'Bad Content';
21 }
22
23 public function getSelfTest(): SelfTest
24 {
25 return $this->selfTest;
26 }
27
28 public function getErrors(): ?array
29 {
30 return $this->selfTest->getErrors();
31 }
32 }
33