for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Innmind\Compose\Definition;
use Innmind\Compose\Exception\NameMustContainAtLeastACharacter;
use Innmind\Immutable\Str;
final class Name
{
private $value;
public function __construct(string $value)
if (Str::of($value)->empty()) {
throw new NameMustContainAtLeastACharacter;
}
$this->value = $value;
public function __toString(): string
return $this->value;