uawdijnntqw1x1x1
IP : 216.73.216.15
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
craftcms
/
commerce
/
src
/
.
/
helpers
/
Purchasable.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\commerce\helpers; use craft\helpers\StringHelper; /** * Purchasable helper * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 3.2.8 */ class Purchasable { public const TEMPORARY_SKU_PREFIX = '__temp_'; /** * Generates a new temporary SKU. * * @since 3.2.8 */ public static function tempSku(): string { return static::TEMPORARY_SKU_PREFIX . StringHelper::randomString(); } /** * Returns whether the given SKU is temporary. * * @since 3.2.8 */ public static function isTempSku(string $sku): bool { return str_starts_with($sku, static::TEMPORARY_SKU_PREFIX); } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/commerce/src/./helpers/Purchasable.php