Completed
Push — master ( 1d13ba...f9bf31 )
by Sam
49:13
created

A   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 35
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setAddress() 0 4 1
A getAddress() 0 4 1
A output() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of Badcow DNS Library.
5
 *
6
 * (c) Samuel Williams <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Badcow\DNS\Rdata;
13
14
use Badcow\DNS\Validator;
15
16
class A implements RdataInterface
17
{
18
    use RdataTrait;
19
20
    const TYPE = 'A';
21
22
    /**
23
     * @var string
24
     */
25
    protected $address;
26
27
    /**
28
     * @param string $address
29
     */
30
    public function setAddress($address)
31
    {
32
        $this->address = $address;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getAddress()
39
    {
40
        return $this->address;
41
    }
42
43
    /**
44
     * {@inheritdoc}
45
     */
46
    public function output()
47
    {
48
        return $this->address;
49
    }
50
}
51