Completed
Push — master ( 08cbf3...6ef5d2 )
by Cheren
04:26
created

FilterAbstract::setAsset()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * JBZoo Assets
4
 *
5
 * This file is part of the JBZoo CCK package.
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 *
9
 * @package   Assets
10
 * @license   MIT
11
 * @copyright Copyright (C) JBZoo.com,  All rights reserved.
12
 * @link      https://github.com/JBZoo/Assets
13
 * @author    Sergey Kalistratov <[email protected]>
14
 */
15
16
namespace JBZoo\Assets\Filter;
17
18
use JBZoo\Assets\Asset;
19
20
/**
21
 * Class FilterAbstract
22
 *
23
 * @package JBZoo\Assets\Filter
24
 */
25
abstract class FilterAbstract implements FilterInterface
26
{
27
28
    /**
29
     * @var Asset
30
     */
31
    protected $_asset;
32
33
    /**
34
     * @param Asset $asset
35
     * @return $this
36
     */
37
    public function setAsset(Asset $asset)
38
    {
39
        $this->_asset = $asset;
40
        return $this;
41
    }
42
43
    /**
44
     * @return mixed
45
     */
46
    abstract public function process();
47
}
48