Completed
Push — master ( 06b292...adafac )
by Nicolai
02:22
created

Template   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 47
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A place() 0 6 1
A setVars() 0 6 1
A produce() 0 4 1
A produceWith() 0 4 1
1
<?php
2
3
4
namespace SmartWeb\ModuleTesting\Codeception\Template;
5
6
use Codeception\Util\Template as BaseTemplate;
7
8
9
class Template extends BaseTemplate implements TemplateInterface
10
{
11
    
12
    /**
13
     * @param string $var
14
     * @param mixed  $val
15
     *
16
     * @return static
17
     */
18
    public function place($var, $val)
19
    {
20
        parent::place($var, $val);
21
        
22
        return $this;
23
    }
24
    
25
    /**
26
     * @param array $vars
27
     *
28
     * @return static
29
     */
30
    public function setVars(array $vars)
31
    {
32
        parent::setVars($vars);
33
        
34
        return $this;
35
    }
36
    
37
    /**
38
     * @return string
39
     */
40
    public function produce() : string
41
    {
42
        return parent::produce();
43
    }
44
    
45
    /**
46
     * @param array $vars
47
     *
48
     * @return string
49
     */
50
    public function produceWith(array $vars) : string
51
    {
52
        return $this->setVars($vars)->produce();
53
    }
54
    
55
}