for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Protoku\ValueObjects;
class Email
{
/**
* @var string
*/
private $value;
* Email constructor.
*
* @param string $value
protected function __construct(string $value)
$this->value = $value;
}
* @return string
public function getValue(): string
return $this->value;
public function __toString(): string
return $this->getValue();