for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Kata\Algorithm;
use DateTime;
final class Person
{
/** @var string */
private $name;
/** @var DateTime */
private $birth_date;
public function __construct(string $a_name, DateTime $a_birth_date)
$this->name = $a_name;
$this->birth_date = $a_birth_date;
}
public function name(): string
return $this->name;
public function birthDate(): DateTime
return $this->birth_date;