PluginProbe
Boxzilla – WordPress Popup Builder / 3.2.18
Boxzilla – WordPress Popup Builder v3.2.18
3.4.11 3.4.10 3.4.9 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 trunk 3.0 3.0.1 3.0.2 3.0.3 3.1 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 All 72 releases
← All changes | src/licensing/class-api-exception.php +23 -24 trunk3.2.18 View file →
@@ -3,32 +3,31 @@
3 3 namespace Boxzilla\Licensing;
4 4
5 5 use Exception;
6 6
7 -class API_Exception extends Exception
8 -{
9 - /**
10 - * @var string
11 - */
12 - protected $api_code;
7 +class API_Exception extends Exception {
13 8
14 - /**
15 - * API_Exception constructor.
16 - *
17 - * @param string $message
18 - * @param string|int $api_code (optional)
19 - */
20 - public function __construct($message, $api_code = '')
21 - {
22 - parent::__construct($message);
23 9
24 - $this->api_code = $api_code;
25 - }
10 + /**
11 + * @var string
12 + */
13 + protected $api_code;
26 14
27 - /**
28 - * @return string
29 - */
30 - public function getApiCode()
31 - {
32 - return $this->api_code;
33 - }
15 + /**
16 + * API_Exception constructor.
17 + *
18 + * @param string $message
19 + * @param string $api_code (optional)
20 + */
21 + public function __construct( $message, $api_code = '' ) {
22 + parent::__construct( $message );
23 +
24 + $this->api_code = $api_code;
25 + }
26 +
27 + /**
28 + * @return string
29 + */
30 + public function getApiCode() {
31 + return $this->api_code;
32 + }
34 33 }