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

Future   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A setExDate() 0 4 1
1
<?php
2
3
namespace AfriCC\EPP\Extension\NASK\Report;
4
5
use AfriCC\EPP\Extension\NASK\Report;
6
7
class Future extends Report
8
{
9
    /**
10
     * Init Futures report frame
11
     */
12
    public function __construct()
13
    {
14
        parent::__construct();
15
        $this->set('extreport:future');
16
    }
17
18
    /**
19
     * Set expiry date of Future elements to report about
20
     *
21
     * Do not use this function if intended report is to be about all Future objects.
22
     *
23
     * @param string $exDate Expiry date of future in proper format
24
     */
25
    public function setExDate($exDate)
26
    {
27
        $this->set('extreport:future/extreport:exDate', $exDate);
28
    }
29
}
30