Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
core_kernel_classes_Literal
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 __toString
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3/**
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; under version 2
7 * of the License (non-upgradable).
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17 *
18 * Copyright (c) 2002-2008 (original work) Public Research Centre Henri Tudor & University of Luxembourg
19 *                         (under the project TAO & TAO2);
20 *               2008-2010 (update and modification) Deutsche Institut für Internationale Pädagogische Forschung
21 *                         (under the project TAO-TRANSFER);
22 *               2009-2012 (update and modification) Public Research Centre Henri Tudor
23 *                         (under the project TAO-SUSTAIN & TAO-DEV);
24 *
25 */
26
27/**
28 * Short description of class core_kernel_classes_Literal
29 *
30 * @access public
31 * @author firstname and lastname of author, <author@example.org>
32 * @package generis
33 */
34class core_kernel_classes_Literal extends core_kernel_classes_Container
35{
36    // --- ASSOCIATIONS ---
37    // generateAssociationEnd :
38
39    // --- ATTRIBUTES ---
40
41    /**
42     * Short description of attribute literal
43     *
44     * @access public
45     * @var string
46     */
47    public $literal = '';
48
49    // --- OPERATIONS ---
50
51    /**
52     * Short description of method __construct
53     *
54     * @access public
55     * @author firstname and lastname of author, <author@example.org>
56     * @param  string literal
57     * @param  string debug
58     * @return void
59     */
60    public function __construct($literal, $debug = '')
61    {
62
63        $this->literal = strval($literal);
64    }
65
66    /**
67     * Short description of method __toString
68     *
69     * @access public
70     * @author firstname and lastname of author, <author@example.org>
71     * @return string
72     */
73    public function __toString()
74    {
75        $returnValue = (string) '';
76
77
78        $returnValue = $this->literal;
79
80
81        return (string) $returnValue;
82    }
83}