Completed
Pull Request — master (#67)
by
unknown
01:33
created

Host::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace AfriCC\EPP\Extension\NASK\Report;
3
4
use AfriCC\EPP\Extension\NASK\Report;
5
6
class Host extends Report
7
{
8
    /**
9
     * Construct Report Hosts frame. Sets report for reporting hosts
10
     */
11
    public function __construct()
12
    {
13
        parent::__construct();
14
        $this->set('extreport:host');
15
    }
16
17
    /**
18
     * Set name of host to report. Do not use unless wanting report only about single host.
19
     * 
20
     * @param string $name name of host to report
21
     */
22
    public function setName($name)
23
    {
24
        $this->set('extreport:host/extreport:name', $name);
25
    }
26
}
27
28