mirror of
https://github.com/envoyr/nginx-configurator.git
synced 2026-04-28 12:24:08 +00:00
Initial commit
This commit is contained in:
24
src/Node/Literal.php
Normal file
24
src/Node/Literal.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: mbrzuchalski
|
||||
* Date: 08.04.16
|
||||
* Time: 10:32
|
||||
*/
|
||||
namespace Madkom\NginxConfigurator\Node;
|
||||
|
||||
/**
|
||||
* Class Literal
|
||||
* @package Madkom\NginxConfigurator
|
||||
* @author Michał Brzuchalski <m.brzuchalski@madkom.pl>
|
||||
*/
|
||||
class Literal extends Param
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function __toString() : string
|
||||
{
|
||||
return '"' . addslashes($this->value) . '"';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user