for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
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;