Completed
Push — master ( c0f250...321e24 )
by Filipe
15:10
created

CustomUri::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 1
1
<?php
2
3
/**
4
 * This file is part of slick/web_stack package
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Slick\WebStack\Service\UriGenerator\Transformer;
11
12
use Slick\Http\Message\Uri;
13
14
/**
15
 * Custom URI
16
 *
17
 * @package Slick\WebStack\Service\UriGenerator\Transformer
18
 */
19
class CustomUri extends Uri
20
{
21
22
    /**
23
     * Creates an empty HTTP URI
24
     * @param null $url
25
     */
26
    public function __construct($url = null)
27
    {
28
        if (null == $url) {
29
            return;
30
        }
31
32
        parent::__construct($url);
33
    }
34
}
35