CoreFiles by mySites.guru
UlidFactory.php22 lines, 485 bytes, from Joomla_5.0.0-Stable-Full_Package.zip
Raw History Compare with 4.4.14
md5
f804aa7c2e1b31756180a3787aca58f9
sha1
1c6d93a1e0de42024649384568cccaa7a70f0c69
sha256
ec9e16bdbde0a7b0bfa25790f9c61b4bf5d7c44e5baab58b6fa2487a21288f7e
<?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 22 releases, Joomla 5.0.0-alpha1 to 5.1.0-alpha4. See them all, or every version of this file.