for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Spiral Framework.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
declare(strict_types=1);
namespace Spiral\Tests\Models;
use Spiral\Models\ValueInterface;
class NameValue implements ValueInterface
{
private $value;
public function __construct($value)
$this->setValue((string)$value);
}
public function __toString(): string
return $this->value;
public function setValue($data): void
$this->value = strtoupper($data);
public function getValue()
public function jsonSerialize()