for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* PHP Billing Library
*
* @link https://github.com/hiqdev/php-billing
* @package php-billing
* @license BSD-3-Clause
* @copyright Copyright (c) 2017-2020, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\php\billing\Exception;
use Exception;
use hiqdev\php\billing\ExceptionInterface;
use Throwable;
* @author Andrii Vasyliev <[email protected]>
class CannotReassignException extends Exception implements ExceptionInterface
{
private $field;
public function __construct(string $message, int $code = 0, Throwable $previous = null)
$this->field = $message;
parent::__construct("cannot reassign $message", $code, $previous);
}
public function getField()
return $this->field;