Completed
Push — master ( 3b3aeb...14bab3 )
by
unknown
01:16
created

Host::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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
        parent::__construct();
15
        $this->set('extreport:host');
16
    }
17
18
    /**
19
     * Set name of host to report. Do not use unless wanting report only about single host.
20
     *
21
     * @param string $name name of host to report
22
     */
23
    public function setName($name)
24
    {
25
        $this->set('extreport:host/extreport:name', $name);
26
    }
27
}
28