Что лучше использовать строку которая будет в ValueObject или null?
public function __construct(Request $request)
{
$this->fullname = $request->request->get('fullname', null);
Весь конструктор:
public function __construct(Request $request)
{
$contactInfo = $request->request->get('contactInfo');
$this->fullname = $request->request->get('fullname', null);
$this->email = $contactInfo['email'] ?? null;
$this->phone = $contactInfo['phone'] ?? null;
$this->linkedInUrl = $contactInfo['linkedInUrl'] ?? null;
$this->currentCompany = $request->request->get('current_company', null);
$this->jobId = $request->request->get('job_id', null);
}