Page MenuHomeWickedGov Phorge

ConstStub.php
No OneTemporary

Size
740 B
Referenced Files
None
Subscribers
None

ConstStub.php

<?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\VarDumper\Caster;
use Symfony\Component\VarDumper\Cloner\Stub;
/**
* Represents a PHP constant and its value.
*
* @author Nicolas Grekas <p@tchwork.com>
*/
class ConstStub extends Stub
{
public function __construct(string $name, string|int|float|null $value = null)
{
$this->class = $name;
$this->value = 1 < \func_num_args() ? $value : $name;
}
public function __toString(): string
{
return (string) $this->value;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 22:23 (1 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f5/ec/c3744139aaa1b9e60c5ef18b9718
Default Alt Text
ConstStub.php (740 B)

Event Timeline