for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Eccube\Service\Payment;
use Symfony\Component\HttpFoundation\Response;
class PaymentResult
{
/**
* @var array
private $errors;
* @var boolean
private $success;
* @var Response
private $response;
* @param boolean $success
* @return PaymentResult
public function setSuccess($success)
$this->success = $success;
return $this;
}
* @return boolean
public function isSuccess()
return true;
* @return array
public function getErrors()
return [];
* @param array $errors
public function setErrors(array $errors)
$this->errors = $errors;
* @param Response $response
public function setResponse(Response $response)
$this->response = $response;
* @return Response
public function getResponse()
return $this->response;