CacheFlushResult   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 9
c 2
b 0
f 0
dl 0
loc 45
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setCount() 0 5 1
A getResult() 0 3 1
A setResult() 0 5 1
A getCount() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the CwdPowerDNS Client
5
 *
6
 * (c) 2018 cwd.at GmbH <[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
declare(strict_types=1);
13
14
namespace Cwd\PowerDNSClient\Model;
15
16
class CacheFlushResult
17
{
18
    /** @var int */
19
    protected $count;
20
    /** @var string */
21
    protected $result;
22
23
    /**
24
     * @return int
25
     */
26
    public function getCount(): int
27
    {
28
        return $this->count;
29
    }
30
31
    /**
32
     * @param int $count
33
     *
34
     * @return CacheFlushResult
35
     */
36
    public function setCount(int $count): CacheFlushResult
37
    {
38
        $this->count = $count;
39
40
        return $this;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getResult(): string
47
    {
48
        return $this->result;
49
    }
50
51
    /**
52
     * @param string $result
53
     *
54
     * @return CacheFlushResult
55
     */
56
    public function setResult(string $result): CacheFlushResult
57
    {
58
        $this->result = $result;
59
60
        return $this;
61
    }
62
}
63