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

Domain   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getExtensionNamespace() 0 4 1
A resendConfirmationRequest() 0 4 1
1
<?php
2
3
namespace AfriCC\EPP\Extension\NASK\Transfer;
4
5
use AfriCC\EPP\ExtensionInterface as Extension;
6
use AfriCC\EPP\Frame\Command\Transfer\Domain as DomainTransfer;
7
8
class Domain extends DomainTransfer implements Extension
9
{
10
    protected $extension = 'extdom';
11
    protected $extension_xmlns = 'http://www.dns.pl/nask-epp-schema/extdom-2.0';
12
13
    public function getExtensionNamespace()
14
    {
15
        return $this->extension_xmlns;
16
    }
17
18
    /**
19
     * Add resend confirmation request
20
     *
21
     * This element can only be applied on request frame with no period specified
22
     */
23
    public function resendConfirmationRequest()
24
    {
25
        $this->set('//epp:epp/epp:command/epp:extension/extdom:transfer/extdom:resendConfirmationRequest');
26
    }
27
}
28