SmartyCompilerException::__toString()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/**
4
 * Smarty compiler exception class
5
 *
6
 * @package Smarty
7
 */
8
class SmartyCompilerException extends SmartyException
9
{
10
    /**
11
     * @return string
12
     */
13
    public function __toString()
14
    {
15
        return ' --> Smarty Compiler: ' . $this->message . ' <-- ';
16
    }
17
18
    /**
19
     * The line number of the template error
20
     *
21
     * @type int|null
22
     */
23
    public $line = null;
24
25
    /**
26
     * The template source snippet relating to the error
27
     *
28
     * @type string|null
29
     */
30
    public $source = null;
31
32
    /**
33
     * The raw text of the error message
34
     *
35
     * @type string|null
36
     */
37
    public $desc = null;
38
39
    /**
40
     * The resource identifier or template name
41
     *
42
     * @type string|null
43
     */
44
    public $template = null;
45
}
46