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

Smarty::setViewFactory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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