Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5988009
StringValue.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
912 B
Referenced Files
None
Subscribers
None
StringValue.php
View Options
<?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\String_
;
use
function
sprintf
;
/** @psalm-immutable */
class
StringValue
implements
PseudoType
{
/** @var string */
private
$value
;
public
function
__construct
(
string
$value
)
{
$this
->
value
=
$value
;
}
public
function
getValue
():
string
{
return
$this
->
value
;
}
public
function
underlyingType
():
Type
{
return
new
String_
();
}
public
function
__toString
():
string
{
return
sprintf
(
'"%s"'
,
$this
->
value
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 4, 00:39 (2 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1f/3c/4cd53f9663407c6882bd151a412b
Default Alt Text
StringValue.php (912 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment