for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nexy\PayboxDirect\Response;
/**
* @author Sullivan Senechal <[email protected]>
*/
abstract class AbstractResponse implements ResponseInterface
{
* @var int
private $code;
* @var string
private $comment;
private $callNumber;
private $questionNumber;
private $transactionNumber;
* @param string[] $data
public function __construct(array $data)
$this->code = intval($data['CODEREPONSE']);
$this->comment = $data['COMMENTAIRE'];
$this->callNumber = intval($data['NUMAPPEL']);
$this->questionNumber = intval($data['NUMQUESTION']);
$this->transactionNumber = intval($data['NUMTRANS']);
}
* @return int
public function getCode()
return $this->code;
* @return string
public function getComment()
return $this->comment;
public function getCallNumber()
return $this->callNumber;
public function getQuestionNumber()
return $this->questionNumber;
public function getTransactionNumber()
return $this->transactionNumber;