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

ViewPartialProviderTrait::getViewPartial()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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
}