Completed
Push — master ( f8c34a...03d8b8 )
by Denis
02:13
created

Filter::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 0
Metric Value
c 1
b 0
f 0
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\Asset;
19
20
/**
21
 * Class Filter
22
 *
23
 * @package JBZoo\Assets\Filter
24
 */
25
abstract class Filter
26
{
27
    /**
28
     * @var Asset
29
     */
30
    protected $_asset;
31
32
    /**
33
     * @param Asset $asset
34
     * @return $this
35
     */
36
    public function setAsset(Asset $asset)
37
    {
38
        $this->_asset = $asset;
39
        return $this;
40
    }
41
42
    /**
43
     * @return mixed
44
     */
45
    abstract public function process();
46
}
47