1<?php
2/**
3 * Handlebars string
4 *
5 * @category  Xamin
6 * @package   Handlebars
7 * @author    fzerorubigd <fzerorubigd@gmail.com>
8 * @author    Behrooz Shabani <everplays@gmail.com>
9 * @author    Mardix <https://github.com/mardix>
10 * @copyright 2012 (c) ParsPooyesh Co
11 * @copyright 2013 (c) Behrooz Shabani
12 * @copyright 2013 (c) Mardix
13 * @license   MIT
14 * @link      http://voodoophp.org/docs/handlebars
15 */
16
17namespace Handlebars;
18
19class HandlebarsString
20{
21    private $string = "";
22
23    /**
24     * Create new string
25     *
26     * @param string $string input source
27     */
28    public function __construct($string)
29    {
30        $this->setString($string);
31    }
32
33    /**
34     * To String
35     *
36     * @return string
37     */
38    public function __toString()
39    {
40        return $this->getString();
41    }
42
43    /**
44     * Get string
45     *
46     * @return string
47     */
48    public function getString()
49    {
50        return $this->string;
51    }
52
53    /**
54     * Create new string
55     *
56     * @param string $string input source
57     *
58     * @return void
59     */
60    public function setString($string)
61    {
62        $this->string = $string;
63    }
64
65}