summaryrefslogtreecommitdiff
path: root/lib/phptal/PHPTAL/NothingKeyword.php
blob: 22a79b0fcd8a09ffd1814e0595fb3d9609ead72d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
 * PHPTAL templating engine
 *
 * PHP Version 5
 *
 * @category HTML
 * @package  PHPTAL
 * @author Andrew Crites <explosion-pills@aysites.com>
 * @license  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
 * @version  SVN: $Id$
 * @link     http://phptal.org/
 */


/**
 * Representation of the template 'nothing' keyword
 *
 * @package PHPTAL
 * @subpackage Keywords
 */
class PHPTAL_NothingKeyword implements PHPTAL_Keywords
{
    public function __toString()
    {
        return 'null';
    }

    public function count()
    {
        return 0;
    }

    public function jsonSerialize()
    {
        return null;
    }
}
?>