Page MenuHomeWickedGov Phorge

FloatValue.php
No OneTemporary

Size
875 B
Referenced Files
None
Subscribers
None

FloatValue.php

<?php
/*
* This file is part of phpDocumentor.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @link http://phpdoc.org
*
*/
declare(strict_types=1);
namespace phpDocumentor\Reflection\PseudoTypes;
use phpDocumentor\Reflection\PseudoType;
use phpDocumentor\Reflection\Type;
use phpDocumentor\Reflection\Types\Float_;
/** @psalm-immutable */
class FloatValue implements PseudoType
{
/** @var float */
private $value;
public function __construct(float $value)
{
$this->value = $value;
}
public function getValue(): float
{
return $this->value;
}
public function underlyingType(): Type
{
return new Float_();
}
public function __toString(): string
{
return (string) $this->value;
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 17 2026, 17:43 (10 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
be/75/b66ee372eccbfc848370097d5cfa
Default Alt Text
FloatValue.php (875 B)

Event Timeline