* @param GoogleToken $googleToken The google token
* @param string $mail The google calendar id
* @param string $summary The google calendar summary
* @param GoogleToken $googleToken The google token
* @param string $mail The google calendar id
* @param string $summary The google calendar summary
- public function __construct(private GoogleToken $googleToken, private string $mail, private string $summary, private \DateTime $synchronized = new \DateTime('now')) {
+ public function __construct(private GoogleToken $googleToken, private string $mail, private string $summary, private \DateTimeImmutable $synchronized = new \DateTime('now')) {
//Check that we have an snippet instance
if (($entity = $eventArgs->getObject()) instanceof GoogleCalendar) {
//Set updated value
//Check that we have an snippet instance
if (($entity = $eventArgs->getObject()) instanceof GoogleCalendar) {
//Set updated value