Host   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A setName() 0 4 1
1
<?php
2
3
namespace AfriCC\EPP\Extension\NASK\Report;
4
5
use AfriCC\EPP\Extension\NASK\Report;
6
7
class Host extends Report
8
{
9
    /**
10
     * Construct Report Hosts frame. Sets report for reporting hosts
11
     */
12
    public function __construct()
13
    {
14
        $args = func_get_args();
15
        \call_user_func_array('parent::__construct', $args);
16
        $this->set('extreport:host');
17
    }
18
19
    /**
20
     * Set name of host to report. Do not use unless wanting report only about single host.
21
     *
22
     * @param string $name name of host to report
23
     */
24
    public function setName($name)
25
    {
26
        $this->set('extreport:host/extreport:name', $name);
27
    }
28
}
29