2024-05-07 16:45:39 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is part of the Symfony package.
|
|
|
|
*
|
|
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Symfony\Component\VarExporter\Internal;
|
|
|
|
|
2024-05-07 18:19:31 +08:00
|
|
|
use Symfony\Component\Serializer\Attribute\Ignore;
|
|
|
|
|
2024-05-07 16:45:39 +08:00
|
|
|
if (\PHP_VERSION_ID >= 80300) {
|
|
|
|
/**
|
|
|
|
* @internal
|
|
|
|
*/
|
|
|
|
trait LazyObjectTrait
|
|
|
|
{
|
2024-05-07 18:19:31 +08:00
|
|
|
#[Ignore]
|
2024-05-07 16:45:39 +08:00
|
|
|
private readonly LazyObjectState $lazyObjectState;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
/**
|
|
|
|
* @internal
|
|
|
|
*/
|
|
|
|
trait LazyObjectTrait
|
|
|
|
{
|
2024-05-07 18:19:31 +08:00
|
|
|
#[Ignore]
|
2024-05-07 16:45:39 +08:00
|
|
|
private LazyObjectState $lazyObjectState;
|
|
|
|
}
|
|
|
|
}
|