src/Date.php
/**
	 * Returns a DateTimeImmutable for a potentially mutable DateTimeInterface
	 *
	 * @param DateTimeInterface $datetime
	 *
	 * @return DateTimeImmutable
	 */
Returns a DateTimeImmutable for a potentially mutable DateTimeInterface
@param DateTimeInterface $datetime


Returns a DateTimeImmutable for a potentially mutable DateTimeInterface @param DateTimeInterface $datetime
public static function toImmutable(DateTimeInterface $datetime): DateTimeImmutable
	{
		return $datetime instanceof DateTimeImmutable 
			? $datetime
			: DateTimeImmutable::createFromMutable($datetime);
	}
public static function toImmutable ( DateTimeInterface $ datetime ) : DateTimeImmutable { return $ datetime instanceof DateTimeImmutable ? $ datetime : DateTimeImmutable :: createFromMutable ( $ datetime ) ; }
Returns a DateTimeImmutable for a potentially mutable DateTimeInterface
 @param DateTimeInterface $datetime
Returns a DateTimeImmutable for a potentially mutable DateTimeInterface @param DateTimeInterface $datetime