Passed
Push — assets ( 3e13ea...57a633 )
by Arnaud
13:03 queued 10:25
created

AbstractAsset   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Cecil/Cecil package.
4
 *
5
 * Copyright (c) Arnaud Ligny <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Cecil\Assets;
12
13
use Cecil\Builder;
14
use Cecil\Config;
15
16
abstract class AbstractAsset
17
{
18
    /** @var Builder */
19
    protected $builder;
20
    /** @var Config */
21
    protected $config;
22
23
    const CACHE_ASSETS_DIR = 'assets';
24
25
    /**
26
     * @var Builder
27
     */
28
    public function __construct(Builder $builder)
29
    {
30
        $this->builder = $builder;
31
        $this->config = $builder->getConfig();
32
    }
33
}
34