Completed
Push — master ( 003f88...43488a )
by Daniel
04:26
created

InsufficientScopeException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace CodeCloud\Bundle\ShopifyBundle\Exception;
4
5
/**
6
 * Thrown when a shop authorization granted different scope than was requested.
7
 */
8
class InsufficientScopeException extends \RuntimeException
9
{
10
    /**
11
     * @param string $requestedScope
12
     * @param string $grantedScope
13
     */
14
    public function __construct(string $requestedScope, string $grantedScope)
15
    {
16
        parent::__construct(
17
            sprintf(
18
                'Insufficient scope. Requested: "%s", granted: "%s".',
19
                $requestedScope,
20
                $grantedScope
21
            )
22
        );
23
    }
24
}
25