IndexProcessResult   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
dl 0
loc 42
c 0
b 0
f 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A isSuccess() 0 3 1
A setSuccess() 0 3 1
A setError() 0 3 1
A getError() 0 3 1
1
<?php
2
3
namespace Mdiyakov\DoctrineSolrBundle\Manager;
4
5
class IndexProcessResult
6
{
7
    /**
8
     * @var bool
9
     */
10
    private $success = false;
11
12
    /**
13
     * @var string
14
     */
15
    private $error = null;
16
17
    /**
18
     * @return boolean
19
     */
20
    public function isSuccess()
21
    {
22
        return $this->success;
23
    }
24
25
    /**
26
     * @param boolean $success
27
     */
28
    public function setSuccess($success)
29
    {
30
        $this->success = $success;
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    public function getError()
37
    {
38
        return $this->error;
39
    }
40
41
    /**
42
     * @param string $error
43
     */
44
    public function setError($error)
45
    {
46
        $this->error = $error;
47
    }
48
}