for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of PhpUnitGen.
*
* (c) 2017-2018 Paul Thébaud <[email protected]>
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace PhpUnitGen\Model\PropertyTrait;
* Interface ValueTrait.
* @author Paul Thébaud <[email protected]>.
* @copyright 2017-2018 Paul Thébaud <[email protected]>.
* @license https://opensource.org/licenses/MIT The MIT license.
* @link https://github.com/paul-thebaud/phpunit-generator
* @since Class available since Release 2.0.0.
trait ValueTrait
{
* @var string|null $value A value symbolised by a string (bool false will be "false" for example).
protected $value;
* @param string|null $value The new value to set.
public function setValue(?string $value): void
$this->value = $value;
}
* @return string|null The current value.
public function getValue(): ?string
return $this->value;