Completed
Pull Request — master (#46)
by ignace nyamagana
05:56 queued 03:24
created

User   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 15
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __debugInfo() 0 4 1
1
<?php
2
/**
3
 * League.Uri (http://uri.thephpleague.com)
4
 *
5
 * @package   League.uri
6
 * @author    Ignace Nyamagana Butera <[email protected]>
7
 * @copyright 2013-2015 Ignace Nyamagana Butera
8
 * @license   https://github.com/thephpleague/uri/blob/master/LICENSE (MIT License)
9
 * @version   4.1.1
10
 * @link      https://github.com/thephpleague/uri/
11
 */
12
namespace League\Uri\Components;
13
14
use League\Uri\Interfaces\User as UserInterface;
15
16
/**
17
 * Value object representing a URI user component.
18
 *
19
 * @package League.uri
20
 * @author  Ignace Nyamagana Butera <[email protected]>
21
 * @since   1.0.0
22
 */
23
class User extends AbstractComponent implements UserInterface
24
{
25
    /**
26
     * @inheritdoc
27
     */
28
    protected static $invalidCharactersRegex = ',[/:@?#],';
29
30
    /**
31
     * @inheritdoc
32
     */
33 2
    public function __debugInfo()
34
    {
35 2
        return ['user' => $this->__toString()];
36
    }
37
}
38