Documentation

Literal
in package

Literal value class

Wraps a raw PHP-source expression (e.g. 'self::FOO', 'Status::Active', 'new Foo()') that must be emitted verbatim wherever a generator would otherwise quote/escape a plain PHP value.

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
6.0.0

Table of Contents

Properties

$value  : string
The raw source expression

Methods

__construct()  : mixed
Constructor
getValue()  : string
Get the raw source expression

Properties

$value

The raw source expression

protected string $value

Methods

__construct()

Constructor

public __construct(string $value) : mixed
Parameters
$value : string

getValue()

Get the raw source expression

public getValue() : string
Return values
string

        
On this page

Search results