Completed
Push — develop ( d5bcf4...a85199 )
by
unknown
07:56
created

ViewPartialProviderTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setViewPartial() 0 6 1
A getViewPartial() 0 4 1
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @license MIT
7
 * @copyright  2013 - 2016 Cross Solution <http://cross-solution.de>
8
 */
9
  
10
/** */
11
namespace Core\Form;
12
13
/**
14
 * Basic implementation of the ViewPartialProviderInterface
15
 * 
16
 * @author Mathias Gelhausen <[email protected]>
17
 */
18
trait ViewPartialProviderTrait
19
{
20
    /**
21
     * The partial name.
22
     *
23
     * @var string
24
     */
25
    protected $partial;
26
27
    public function setViewPartial($partial)
28
    {
29
        $this->partial = $partial;
30
31
        return $this;
32
    }
33
34
    public function getViewPartial()
35
    {
36
        return $this->partial;
37
    }
38
}