Completed
Push — 183-default-layout-ext ( a97107 )
by
unknown
10:37
created

TemplateReference::update()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace League\Plates;
4
5
/** mutable template reference to allow relationships */
6
final class TemplateReference
7
{
8
    public $template;
9
10
    public function __invoke() {
11
        return $this->template;
12
    }
13
14
    public function update(Template $template) {
15
        $this->template = $template;
16
        return $this;
17
    }
18
}
19