Poll   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A request() 0 5 1
A ack() 0 6 1
1
<?php
2
3
/**
4
 * This file is part of the php-epp2 library.
5
 *
6
 * (c) Gunter Grodotzki <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE file
9
 * that was distributed with this source code.
10
 */
11
12
namespace AfriCC\EPP\Frame\Command;
13
14
use AfriCC\EPP\Frame\Command as CommandFrame;
15
16
/**
17
 * @see http://tools.ietf.org/html/rfc5730#section-2.9.2.3
18
 */
19
class Poll extends CommandFrame
20
{
21
    public function request()
22
    {
23
        $node = $this->set();
24
        $node->setAttribute('op', 'req');
25
    }
26
27
    public function ack($msgID)
28
    {
29
        $node = $this->set();
30
        $node->setAttribute('op', 'ack');
31
        $node->setAttribute('msgID', $msgID);
32
    }
33
}
34