Skip to content

Commit 5c9f2c5

Browse files
committed
Response: status setter & getter
1 parent 06e42a6 commit 5c9f2c5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/DatingVIP/API/Response.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,18 @@ public function setTexts($data)
122122
return $this->data[self::KEY_TEXTS] = $data;
123123
}
124124

125+
/**
126+
* Set status.
127+
*
128+
* @param status $status
129+
*
130+
* @return mixed
131+
*/
132+
public function setStatus($status)
133+
{
134+
return $this->setMeta(__FUNCTION__, $status);
135+
}
136+
125137
/**
126138
* Set errors.
127139
*
@@ -206,6 +218,18 @@ public function getTexts()
206218
return $this->hasTexts() ? $this->data[self::KEY_TEXTS] : null;
207219
}
208220

221+
/**
222+
* Get status.
223+
*
224+
* @param void
225+
*
226+
* @return mixed
227+
*/
228+
public function getStatus()
229+
{
230+
return $this->getMeta(__FUNCTION__);
231+
}
232+
209233
/**
210234
* Get errors.
211235
*

0 commit comments

Comments
 (0)