= DateTimeService::getNowDateTimeObject()) { throw new InvalidArgumentException('Birth date cannot be today or in the future'); } $this->date = $date; } /** * Return the name from the value object * * @return string */ public function getValue() { return $this->date; } }