| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class StripeKey extends AbstractHelper |
||
| 8 | { |
||
| 9 | private $publishableKey; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * StripeKey constructor. |
||
| 13 | * @param $publishableKey |
||
| 14 | */ |
||
| 15 | public function __construct($publishableKey) |
||
| 16 | { |
||
| 17 | if (strpos($publishableKey, 'sk') === 0) { |
||
| 18 | throw new \Exception('You appear to have set a secret key as your publishable key, please check config'); |
||
| 19 | } |
||
| 20 | $this->publishableKey = $publishableKey; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function __invoke() |
||
| 26 | } |
||
| 27 | } |