mirror of
https://github.com/Mibew/handlebars.php.git
synced 2025-03-19 23:21:23 +03:00
74 lines
1.3 KiB
PHP
Executable File
74 lines
1.3 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* This file is part of Handlebars-php
|
|
*
|
|
* PHP version 5.3
|
|
*
|
|
* @category Xamin
|
|
* @package Handlebars
|
|
* @author fzerorubigd <fzerorubigd@gmail.com>
|
|
* @copyright 2013 Authors
|
|
* @license MIT <http://opensource.org/licenses/MIT>
|
|
* @version GIT: $Id$
|
|
* @link http://xamin.ir
|
|
*/
|
|
|
|
|
|
/**
|
|
* Handlebars string
|
|
*
|
|
* @category Xamin
|
|
* @package Handlebars
|
|
* @author fzerorubigd <fzerorubigd@gmail.com>
|
|
* @copyright 2013 Authors
|
|
* @license MIT <http://opensource.org/licenses/MIT>
|
|
* @version Release: @package_version@
|
|
* @link http://xamin.ir
|
|
*/
|
|
|
|
class Handlebars_String
|
|
{
|
|
private $_string;
|
|
|
|
/**
|
|
* Create new string
|
|
*
|
|
* @param string $string input source
|
|
*/
|
|
public function __construct($string)
|
|
{
|
|
$this->_string = $string;
|
|
}
|
|
|
|
/**
|
|
* To String
|
|
*
|
|
* @return string
|
|
*/
|
|
public function __toString()
|
|
{
|
|
return $this->getString();
|
|
}
|
|
|
|
/**
|
|
* Get string
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getString()
|
|
{
|
|
return $this->_string;
|
|
}
|
|
|
|
/**
|
|
* Create new string
|
|
*
|
|
* @param string $string input source
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setString($string)
|
|
{
|
|
$this->_string = $string;
|
|
}
|
|
} |