for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Domain\ValueObjects;
use Doctrine\ORM\Mapping AS ORM;
/** @ORM\Embeddable */
final class JobDescription
{
/**
* @var string
* @ORM\Column(type="string")
*/
private $title;
private $description;
private function __construct(string $title, string $description)
$this->title = $title;
$this->description = $description;
}
public static function create(string $title, string $description): JobDescription
return new JobDescription($title, $description);
public function equals(JobDescription $other): bool
return $this->title === $other->title
&& $this->description == $other->description;