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