for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Nexylan packages.
*
* (c) Nexylan SAS <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Nexy\PayboxDirect\Response;
/**
* @author Sullivan Senechal <[email protected]>
final class DirectPlusResponse extends AbstractResponse
{
* @var string
private $subscriberRef;
* @var string|false false if empty
private $bearer;
* {@inheritdoc}
public function __construct(array $parameters)
parent::__construct($parameters);
if (!isset($this->filteredParameters['REFABONNE'])) {
throw new \RuntimeException('Undefined index REFABONNE', 1);
}
$this->subscriberRef = $this->filteredParameters['REFABONNE'];
$this->bearer = $this->filteredParameters['PORTEUR'];
* @return string
public function getSubscriberRef()
return $this->subscriberRef;
public function getBearer()
return $this->bearer;