The __set_state handler

DateTimeImmutable::modify
DateTimeImmutable::setDate
DateTimeImmutable
PHP Manual

# DateTimeImmutable::__set_state

(PHP 5 >= 5.5.0, PHP 7)

DateTimeImmutable::__set_state — The __set_state handler

### Description

public static DateTimeImmutable DateTimeImmutable::__set_state ( array `$array` )

Like DateTime::__set_state() but works with DateTimeImmutable.

DateTimeImmutable::modify
DateTimeImmutable::setDate
DateTimeImmutable
PHP Manual