PublicSuffixList   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 17
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 2
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * PHP Domain Parser: Public Suffix List based URL parsing.
7
 *
8
 * @link      http://github.com/jeremykendall/php-domain-parser for the canonical source repository
9
 *
10
 * @copyright Copyright (c) 2014 Jeremy Kendall (http://about.me/jeremykendall)
11
 * @license   http://github.com/jeremykendall/php-domain-parser/blob/master/LICENSE MIT License
12
 */
13
14
namespace Pdp;
15
16
/**
17
 * Public Suffix List.
18
 */
19
class PublicSuffixList extends \ArrayObject
20
{
21
  /**
22
   * Public constructor.
23
   *
24
   * @param mixed $list Array representing Public Suffix List or PHP Public Suffix List file
25
   */
26 15
  public function __construct($list)
27
  {
28 15
    if (!\is_array($list)) {
29
      /** @noinspection PhpIncludeInspection */
30 15
      $list = require $list;
31
    }
32
33 15
    parent::__construct($list);
34 15
  }
35
}
36