Contact::setContactId()   A
last analyzed

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 Contact extends Report
8
{
9
    /**
10
     * Init Contacts Report frame
11
     */
12
    public function __construct()
13
    {
14
        //parent::__construct();
15
        $args = func_get_args();
16
        \call_user_func_array('parent::__construct', $args);
17
        $this->set('extreport:contact');
18
    }
19
20
    /**
21
     * Set ID of contact to generate report about
22
     *
23
     * Do not use this function if intended report is to be about all contact objects.
24
     *
25
     * @param string $contact ContactID of contact object to generate report about.
26
     */
27
    public function setContactId($contact)
28
    {
29
        $this->set('extreport:contact/extreport:conId', $contact);
30
    }
31
}
32