Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php declare(strict_types=1); namespace Doctrine\ORM\Cache; use function microtime; c..
Decoded Output download
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Cache;
use function microtime;
class QueryCacheEntry implements CacheEntry
{
/**
* Time creation of this cache entry
*/
public readonly float $time;
/** @param array<string, mixed> $result List of entity identifiers */
public function __construct(
public readonly array $result,
float|null $time = null,
) {
$this->time = $time ?: microtime(true);
}
/** @param array<string, mixed> $values */
public static function __set_state(array $values): self
{
return new self($values['result'], $values['time']);
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Cache;
use function microtime;
class QueryCacheEntry implements CacheEntry
{
/**
* Time creation of this cache entry
*/
public readonly float $time;
/** @param array<string, mixed> $result List of entity identifiers */
public function __construct(
public readonly array $result,
float|null $time = null,
) {
$this->time = $time ?: microtime(true);
}
/** @param array<string, mixed> $values */
public static function __set_state(array $values): self
{
return new self($values['result'], $values['time']);
}
}
Function Calls
None |
Stats
MD5 | fc1707e0da306124d425e5a058829f7f |
Eval Count | 0 |
Decode Time | 85 ms |