@@ 28-101 (lines=74) @@ | ||
25 | * @package Elastification\Client\Response\V090x |
|
26 | * @author Daniel Wendlandt |
|
27 | */ |
|
28 | class CreateUpdateDocumentResponse extends Response |
|
29 | { |
|
30 | ||
31 | const PROP_OK = 'ok'; |
|
32 | const PROP_ID = '_id'; |
|
33 | const PROP_VERSION = '_version'; |
|
34 | const PROP_INDEX = '_index'; |
|
35 | const PROP_TYPE = '_type'; |
|
36 | ||
37 | /** |
|
38 | * Getter Method |
|
39 | * |
|
40 | * @return mixed |
|
41 | * @author Daniel Wendlandt |
|
42 | */ |
|
43 | public function isOk() |
|
44 | { |
|
45 | $this->processData(); |
|
46 | ||
47 | return $this->get(self::PROP_OK); |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * Getter Method |
|
52 | * |
|
53 | * @return mixed |
|
54 | * @author Daniel Wendlandt |
|
55 | */ |
|
56 | public function getId() |
|
57 | { |
|
58 | $this->processData(); |
|
59 | ||
60 | return $this->get(self::PROP_ID); |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * Getter Method |
|
65 | * |
|
66 | * @return mixed |
|
67 | * @author Daniel Wendlandt |
|
68 | */ |
|
69 | public function getVersion() |
|
70 | { |
|
71 | $this->processData(); |
|
72 | ||
73 | return $this->get(self::PROP_VERSION); |
|
74 | } |
|
75 | ||
76 | /** |
|
77 | * Getter Method |
|
78 | * |
|
79 | * @return mixed |
|
80 | * @author Daniel Wendlandt |
|
81 | */ |
|
82 | public function getIndex() |
|
83 | { |
|
84 | $this->processData(); |
|
85 | ||
86 | return $this->get(self::PROP_INDEX); |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * Getter Method |
|
91 | * |
|
92 | * @return mixed |
|
93 | * @author Daniel Wendlandt |
|
94 | */ |
|
95 | public function getType() |
|
96 | { |
|
97 | $this->processData(); |
|
98 | ||
99 | return $this->get(self::PROP_TYPE); |
|
100 | } |
|
101 | } |
|
102 |
@@ 28-102 (lines=75) @@ | ||
25 | * @package Elastification\Client\Response\V090x |
|
26 | * @author Daniel Wendlandt |
|
27 | */ |
|
28 | class NodeInfoResponse extends Response |
|
29 | { |
|
30 | ||
31 | const PROP_OK = 'ok'; |
|
32 | const PROP_STATUS = 'status'; |
|
33 | const PROP_NAME = 'name'; |
|
34 | const PROP_VERSION = 'version'; |
|
35 | const PROP_TAGLINE = 'tagline'; |
|
36 | ||
37 | /** |
|
38 | * Getter Method |
|
39 | * |
|
40 | * @return mixed |
|
41 | * @author Daniel Wendlandt |
|
42 | */ |
|
43 | public function isOk() |
|
44 | { |
|
45 | $this->processData(); |
|
46 | ||
47 | return $this->get(self::PROP_OK); |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * Getter Method |
|
52 | * |
|
53 | * @return mixed |
|
54 | * @author Daniel Wendlandt |
|
55 | */ |
|
56 | public function getVersion() |
|
57 | { |
|
58 | $this->processData(); |
|
59 | ||
60 | return $this->get(self::PROP_VERSION); |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * Getter Method |
|
65 | * |
|
66 | * @return mixed |
|
67 | * @author Daniel Wendlandt |
|
68 | */ |
|
69 | public function getName() |
|
70 | { |
|
71 | $this->processData(); |
|
72 | ||
73 | return $this->get(self::PROP_NAME); |
|
74 | } |
|
75 | ||
76 | /** |
|
77 | * Getter Method |
|
78 | * |
|
79 | * @return mixed |
|
80 | * @author Daniel Wendlandt |
|
81 | */ |
|
82 | public function getStatus() |
|
83 | { |
|
84 | $this->processData(); |
|
85 | ||
86 | return $this->get(self::PROP_STATUS); |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * Getter Method |
|
91 | * |
|
92 | * @return mixed |
|
93 | * @author Daniel Wendlandt |
|
94 | */ |
|
95 | public function getTagline() |
|
96 | { |
|
97 | $this->processData(); |
|
98 | ||
99 | return $this->get(self::PROP_TAGLINE); |
|
100 | } |
|
101 | ||
102 | } |
|
103 |
@@ 26-89 (lines=64) @@ | ||
23 | * @package Elastification\Client\Response\V1x |
|
24 | * @author Daniel Wendlandt |
|
25 | */ |
|
26 | class CreateUpdateDocumentResponse extends Response |
|
27 | { |
|
28 | ||
29 | const PROP_CREATED = 'created'; |
|
30 | const PROP_ID = '_id'; |
|
31 | const PROP_VERSION = '_version'; |
|
32 | const PROP_INDEX = '_index'; |
|
33 | const PROP_TYPE = '_type'; |
|
34 | ||
35 | /** |
|
36 | * @return boolean |
|
37 | * @author Mario Mueller |
|
38 | */ |
|
39 | public function created() |
|
40 | { |
|
41 | $this->processData(); |
|
42 | ||
43 | return $this->get(self::PROP_CREATED); |
|
44 | } |
|
45 | ||
46 | /** |
|
47 | * @return string |
|
48 | * @author Mario Mueller |
|
49 | */ |
|
50 | public function getId() |
|
51 | { |
|
52 | $this->processData(); |
|
53 | ||
54 | return $this->get(self::PROP_ID); |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @return integer |
|
59 | * @author Mario Mueller |
|
60 | */ |
|
61 | public function getVersion() |
|
62 | { |
|
63 | $this->processData(); |
|
64 | ||
65 | return $this->get(self::PROP_VERSION); |
|
66 | } |
|
67 | ||
68 | /** |
|
69 | * @return string |
|
70 | * @author Mario Mueller |
|
71 | */ |
|
72 | public function getIndex() |
|
73 | { |
|
74 | $this->processData(); |
|
75 | ||
76 | return $this->get(self::PROP_INDEX); |
|
77 | } |
|
78 | ||
79 | /** |
|
80 | * @return string |
|
81 | * @author Mario Mueller |
|
82 | */ |
|
83 | public function getType() |
|
84 | { |
|
85 | $this->processData(); |
|
86 | ||
87 | return $this->get(self::PROP_TYPE); |
|
88 | } |
|
89 | } |
|
90 |
@@ 26-89 (lines=64) @@ | ||
23 | * @package Elastification\Client\Response\V2x |
|
24 | * @author Daniel Wendlandt |
|
25 | */ |
|
26 | class CreateUpdateDocumentResponse extends Response |
|
27 | { |
|
28 | ||
29 | const PROP_CREATED = 'created'; |
|
30 | const PROP_ID = '_id'; |
|
31 | const PROP_VERSION = '_version'; |
|
32 | const PROP_INDEX = '_index'; |
|
33 | const PROP_TYPE = '_type'; |
|
34 | ||
35 | /** |
|
36 | * @return boolean |
|
37 | * @author Mario Mueller |
|
38 | */ |
|
39 | public function created() |
|
40 | { |
|
41 | $this->processData(); |
|
42 | ||
43 | return $this->get(self::PROP_CREATED); |
|
44 | } |
|
45 | ||
46 | /** |
|
47 | * @return string |
|
48 | * @author Mario Mueller |
|
49 | */ |
|
50 | public function getId() |
|
51 | { |
|
52 | $this->processData(); |
|
53 | ||
54 | return $this->get(self::PROP_ID); |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @return integer |
|
59 | * @author Mario Mueller |
|
60 | */ |
|
61 | public function getVersion() |
|
62 | { |
|
63 | $this->processData(); |
|
64 | ||
65 | return $this->get(self::PROP_VERSION); |
|
66 | } |
|
67 | ||
68 | /** |
|
69 | * @return string |
|
70 | * @author Mario Mueller |
|
71 | */ |
|
72 | public function getIndex() |
|
73 | { |
|
74 | $this->processData(); |
|
75 | ||
76 | return $this->get(self::PROP_INDEX); |
|
77 | } |
|
78 | ||
79 | /** |
|
80 | * @return string |
|
81 | * @author Mario Mueller |
|
82 | */ |
|
83 | public function getType() |
|
84 | { |
|
85 | $this->processData(); |
|
86 | ||
87 | return $this->get(self::PROP_TYPE); |
|
88 | } |
|
89 | } |
|
90 |
@@ 28-102 (lines=75) @@ | ||
25 | * @package Elastification\Client\Response\V1x |
|
26 | * @author Daniel Wendlandt |
|
27 | */ |
|
28 | class NodeInfoResponse extends Response |
|
29 | { |
|
30 | ||
31 | const PROP_STATUS = 'status'; |
|
32 | const PROP_NAME = 'name'; |
|
33 | const PROP_TAGLINE = 'tagline'; |
|
34 | const PROP_CLUSTER_NAME = 'cluster_name'; |
|
35 | const PROP_VERSION = 'version'; |
|
36 | ||
37 | /** |
|
38 | * Getter Method |
|
39 | * |
|
40 | * @return mixed |
|
41 | * @author Daniel Wendlandt |
|
42 | */ |
|
43 | public function getVersion() |
|
44 | { |
|
45 | $this->processData(); |
|
46 | ||
47 | return $this->get(self::PROP_VERSION); |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * Getter Method |
|
52 | * |
|
53 | * @return mixed |
|
54 | * @author Daniel Wendlandt |
|
55 | */ |
|
56 | public function getName() |
|
57 | { |
|
58 | $this->processData(); |
|
59 | ||
60 | return $this->get(self::PROP_NAME); |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * Getter Method |
|
65 | * |
|
66 | * @return mixed |
|
67 | * @author Daniel Wendlandt |
|
68 | */ |
|
69 | public function getStatus() |
|
70 | { |
|
71 | $this->processData(); |
|
72 | ||
73 | return $this->get(self::PROP_STATUS); |
|
74 | } |
|
75 | ||
76 | /** |
|
77 | * Getter Method |
|
78 | * |
|
79 | * @return mixed |
|
80 | * @author Daniel Wendlandt |
|
81 | */ |
|
82 | public function getClusterName() |
|
83 | { |
|
84 | $this->processData(); |
|
85 | ||
86 | return $this->get(self::PROP_CLUSTER_NAME); |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * Getter Method |
|
91 | * |
|
92 | * @return mixed |
|
93 | * @author Daniel Wendlandt |
|
94 | */ |
|
95 | public function getTagline() |
|
96 | { |
|
97 | $this->processData(); |
|
98 | ||
99 | return $this->get(self::PROP_TAGLINE); |
|
100 | } |
|
101 | ||
102 | } |
|
103 |