| @@ 22-59 (lines=38) @@ | ||
| 19 | * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3) |
|
| 20 | * @link http://www.noovias.com |
|
| 21 | */ |
|
| 22 | class Payone_SessionStatus_Response extends Payone_SessionStatus_Response_Abstract |
|
| 23 | { |
|
| 24 | const STATUS_OK = 'SSOK'; |
|
| 25 | ||
| 26 | /** |
|
| 27 | * @var string |
|
| 28 | */ |
|
| 29 | protected $status = NULL; |
|
| 30 | ||
| 31 | function __construct($status = '') |
|
| 32 | { |
|
| 33 | $this->setStatus($status); |
|
| 34 | } |
|
| 35 | ||
| 36 | /** |
|
| 37 | * @return string |
|
| 38 | */ |
|
| 39 | public function __toString() |
|
| 40 | { |
|
| 41 | return $this->getStatus(); |
|
| 42 | } |
|
| 43 | ||
| 44 | /** |
|
| 45 | * @param string $status |
|
| 46 | */ |
|
| 47 | public function setStatus($status) |
|
| 48 | { |
|
| 49 | $this->status = $status; |
|
| 50 | } |
|
| 51 | ||
| 52 | /** |
|
| 53 | * @return string |
|
| 54 | */ |
|
| 55 | public function getStatus() |
|
| 56 | { |
|
| 57 | return $this->status; |
|
| 58 | } |
|
| 59 | } |
|
| 60 | ||
| @@ 22-59 (lines=38) @@ | ||
| 19 | * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3) |
|
| 20 | * @link http://www.noovias.com |
|
| 21 | */ |
|
| 22 | class Payone_TransactionStatus_Response extends Payone_TransactionStatus_Response_Abstract |
|
| 23 | { |
|
| 24 | const STATUS_OK = 'TSOK'; |
|
| 25 | ||
| 26 | /** |
|
| 27 | * @var string |
|
| 28 | */ |
|
| 29 | protected $status = NULL; |
|
| 30 | ||
| 31 | function __construct($status = '') |
|
| 32 | { |
|
| 33 | $this->setStatus($status); |
|
| 34 | } |
|
| 35 | ||
| 36 | /** |
|
| 37 | * @return string |
|
| 38 | */ |
|
| 39 | public function __toString() |
|
| 40 | { |
|
| 41 | return $this->getStatus(); |
|
| 42 | } |
|
| 43 | ||
| 44 | /** |
|
| 45 | * @param string $status |
|
| 46 | */ |
|
| 47 | public function setStatus($status) |
|
| 48 | { |
|
| 49 | $this->status = $status; |
|
| 50 | } |
|
| 51 | ||
| 52 | /** |
|
| 53 | * @return string |
|
| 54 | */ |
|
| 55 | public function getStatus() |
|
| 56 | { |
|
| 57 | return $this->status; |
|
| 58 | } |
|
| 59 | } |
|
| 60 | ||