date = $dto->date; $resource->reason = $dto->reason; $resource->type = $dto->type; return $resource; } }