PluginProbe
Metricool – Social media and site statistics / 2.1.1
Metricool – Social media and site statistics v2.1.1
2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.27 trunk
← All changes | app/Features/Onboarding/Exceptions/CreateAccountException.php +20 -0 2.0.0 → 2.1.1 View file →
@@ -1,0 +1,20 @@
1 +<?php
2 +
3 +namespace Metricool\Features\Onboarding\Exceptions;
4 +
5 +class CreateAccountException extends \RuntimeException
6 +{
7 + public ?string $reason;
8 +
9 + public function __construct(string $message, ?string $reason = null, int $code = 500)
10 + {
11 + parent::__construct($message, $code);
12 +
13 + $this->reason = $reason;
14 + }
15 +
16 + public function getReason(): ?string
17 + {
18 + return $this->reason;
19 + }
20 +}