CoreFiles by mySites.guru
UlidFactory.php22 lines, 486 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
c9494e6c4a8fb63b0e36c8bd097af88c
sha1
ba3d8e634d35477eefbbf2c54e5b6f483abc99d4
sha256
6d82c112b9434a98603f3e252a520eef55f73cffa18953e837f375ca218dcd86
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Uid\Factory;

use Symfony\Component\Uid\Ulid;

class UlidFactory
{
    public function create(?\DateTimeInterface $time = null): Ulid
    {
        return new Ulid(null === $time ? null : Ulid::generate($time));
    }
}

The same content is in 136 releases, Joomla 5.1.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.