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-2018, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\php\billing\charge\modifiers\addons;
* Reason addon.
* @author Andrii Vasyliev <[email protected]>
class Reason
{
* @var string
protected $value;
public function __construct($value)
$this->value = static::ensureValidValue($value);
}
public function getValue()
return $this->value;
public static function ensureValidValue($value)
return (string)$value;