Completed
Pull Request — master (#43)
by yuuki
06:33
created

Smarty   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setViewFactory() 0 4 1
A getViewFactory() 0 4 1
1
<?php
2
3
/**
4
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
7
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
9
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
10
 * THE SOFTWARE.
11
 *
12
 * This software consists of voluntary contributions made by many individuals
13
 * and is licensed under the MIT license.
14
 *
15
 * Copyright (c) 2014-2016 Yuuki Takezawa
16
 *
17
 */
18
19
namespace Ytake\LaravelSmarty;
20
21
use Illuminate\Contracts\View\Factory;
22
23
/**
24
 * Class Smarty
25
 *
26
 * @author  yuuki.takezawa<[email protected]>
27
 * @license http://opensource.org/licenses/MIT MIT
28
 */
29
final class Smarty extends \Smarty
30
{
31
    /** @var Factory */
32
    protected $viewFactory;
33
34
    /**
35
     * @param Factory $factory
36
     */
37
    public function setViewFactory(Factory $factory)
38
    {
39
        $this->viewFactory = $factory;
40
    }
41
42
    /**
43
     * @return Factory
44
     */
45
    public function getViewFactory()
46
    {
47
        return $this->viewFactory;
48
    }
49
}
50