Code Duplication    Length = 52-88 lines in 3 locations

src/Response/V090x/DeleteDocumentResponse.php 1 location

@@ 28-115 (lines=88) @@
25
 * @package Elastification\Client\Response\V090x
26
 * @author  Daniel Wendlandt
27
 */
28
class DeleteDocumentResponse extends Response
29
{
30
31
    const PROP_OK = 'ok';
32
    const PROP_FOUND = 'found';
33
    const PROP_ID = '_id';
34
    const PROP_VERSION = '_version';
35
    const PROP_INDEX = '_index';
36
    const PROP_TYPE = '_type';
37
38
    /**
39
     * Getter Method
40
     *
41
     * @return mixed
42
     * @author Daniel Wendlandt
43
     */
44
    public function isOk()
45
    {
46
        $this->processData();
47
48
        return $this->get(self::PROP_OK);
49
    }
50
51
    /**
52
     * Getter Method
53
     *
54
     * @return mixed
55
     * @author Daniel Wendlandt
56
     */
57
    public function found()
58
    {
59
        $this->processData();
60
61
        return $this->get(self::PROP_FOUND);
62
    }
63
64
    /**
65
     * Getter Method
66
     *
67
     * @return mixed
68
     * @author Daniel Wendlandt
69
     */
70
    public function getId()
71
    {
72
        $this->processData();
73
74
        return $this->get(self::PROP_ID);
75
    }
76
77
    /**
78
     * Getter Method
79
     *
80
     * @return mixed
81
     * @author Daniel Wendlandt
82
     */
83
    public function getVersion()
84
    {
85
        $this->processData();
86
87
        return $this->get(self::PROP_VERSION);
88
    }
89
90
    /**
91
     * Getter Method
92
     *
93
     * @return mixed
94
     * @author Daniel Wendlandt
95
     */
96
    public function getIndex()
97
    {
98
        $this->processData();
99
100
        return $this->get(self::PROP_INDEX);
101
    }
102
103
    /**
104
     * Getter Method
105
     *
106
     * @return mixed
107
     * @author Daniel Wendlandt
108
     */
109
    public function getType()
110
    {
111
        $this->processData();
112
113
        return $this->get(self::PROP_TYPE);
114
    }
115
}
116

src/Response/V1x/DeleteDocumentResponse.php 1 location

@@ 22-73 (lines=52) @@
19
20
use Elastification\Client\Response\Response;
21
22
class DeleteDocumentResponse extends Response
23
{
24
25
    const PROP_OK = 'ok';
26
    const PROP_FOUND = 'found';
27
    const PROP_ID = '_id';
28
    const PROP_VERSION = '_version';
29
    const PROP_INDEX = '_index';
30
    const PROP_TYPE = '_type';
31
32
    public function isOk()
33
    {
34
        $this->processData();
35
36
        return $this->get(self::PROP_OK);
37
    }
38
39
    public function found()
40
    {
41
        $this->processData();
42
43
        return $this->get(self::PROP_FOUND);
44
    }
45
46
    public function getId()
47
    {
48
        $this->processData();
49
50
        return $this->get(self::PROP_ID);
51
    }
52
53
    public function getVersion()
54
    {
55
        $this->processData();
56
57
        return $this->get(self::PROP_VERSION);
58
    }
59
60
    public function getIndex()
61
    {
62
        $this->processData();
63
64
        return $this->get(self::PROP_INDEX);
65
    }
66
67
    public function getType()
68
    {
69
        $this->processData();
70
71
        return $this->get(self::PROP_TYPE);
72
    }
73
}
74

src/Response/V2x/DeleteDocumentResponse.php 1 location

@@ 22-73 (lines=52) @@
19
20
use Elastification\Client\Response\Response;
21
22
class DeleteDocumentResponse extends Response
23
{
24
25
    const PROP_OK = 'ok';
26
    const PROP_FOUND = 'found';
27
    const PROP_ID = '_id';
28
    const PROP_VERSION = '_version';
29
    const PROP_INDEX = '_index';
30
    const PROP_TYPE = '_type';
31
32
    public function isOk()
33
    {
34
        $this->processData();
35
36
        return $this->get(self::PROP_OK);
37
    }
38
39
    public function found()
40
    {
41
        $this->processData();
42
43
        return $this->get(self::PROP_FOUND);
44
    }
45
46
    public function getId()
47
    {
48
        $this->processData();
49
50
        return $this->get(self::PROP_ID);
51
    }
52
53
    public function getVersion()
54
    {
55
        $this->processData();
56
57
        return $this->get(self::PROP_VERSION);
58
    }
59
60
    public function getIndex()
61
    {
62
        $this->processData();
63
64
        return $this->get(self::PROP_INDEX);
65
    }
66
67
    public function getType()
68
    {
69
        $this->processData();
70
71
        return $this->get(self::PROP_TYPE);
72
    }
73
}
74