for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nexy\PayboxDirect\Response;
/**
* Special response for inquiry request.
*
* @author Sullivan Senechal <[email protected]>
*/
final class InquiryResponse extends AbstractResponse
{
* @var string
private $status;
* @var string|null
private $discount = null;
* {@inheritdoc}
public function __construct($parameters)
parent::__construct($parameters);
$this->status = $this->filteredParameters['STATUS'];
if (array_key_exists('REMISE', $this->filteredParameters)) {
$this->discount = $this->filteredParameters['REMISE'];
}
* @return string
public function getStatus()
return $this->status;
* @return string|null
public function getDiscount()
return $this->discount;