Completed
Push — v4.0-dev ( b01e70 )
by
unknown
01:53
created

PropArgs   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 3 1
1
<?php
2
3
namespace League\Plates\RenderContext;
4
5
use League\Plates;
6
7
class PropArgs extends AbstractArgs
8
{
9
    public $prop_name;
10
11
    public function __construct(Plates\RenderTemplate $render, Plates\Template $template, $prop_name) {
12
        parent::__construct($render, $template);
13
        $this->prop_name = $prop_name;
14
    }
15
16
    public function getName() {
17
        return $this->prop_name;
18
    }
19
}
20