fpdo/fluentpdo

View on GitHub
src/Literal.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Envms\FluentPDO;

/**
 * SQL literal value
 */
class Literal
{

    /** @var string */
    protected $value = '';

    /**
     * Create literal value
     *
     * @param string $value
     */
    function __construct($value)
    {
        $this->value = $value;
    }

    /**
     * Get literal value
     *
     * @return string
     */
    function __toString()
    {
        return $this->value;
    }

}