URLNotBuiltException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: james
5
 * Date: 18/07/2018
6
 * Time: 12:44
7
 */
8
9
namespace CwsOps\LivePerson\Rest;
10
11
/**
12
 * Class UrlNotBuildException
13
 * URLNotBuilt will be thrown, when the URL Builder is not locked.
14
 * @package CwsOps\LivePerson\Rest
15
 */
16
class URLNotBuiltException extends \Exception
17
{
18
    public function __construct()
19
    {
20
        $message = "the URL has not been built, you need to call UrlBuilder::build() before getting the URL";
21
22
        parent::__construct($message, 500);
23
    }
24
}