D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
local
/
psa
/
admin
/
plib
/
modules
/
wp-toolkit
/
vendor
/
robmorgan
/
phinx
/
src
/
Phinx
/
Util
/
Filename :
Literal.php
back
Copy
<?php /** * MIT License * For full license information, please view the LICENSE file that was distributed with this source code. */ namespace WPToolkitDependenciesIsolationPrefix\Phinx\Util; class Literal { /** * @var string The literal's value */ protected $value; /** * @param string $value The literal's value */ public function __construct(string $value) { $this->value = $value; } /** * @return string Returns the literal's value */ public function __toString() : string { return $this->value; } /** * @param string $value The literal's value * @return self */ public static function from(string $value) : Literal { return new self($value); } }