Completed
Push — master ( 6a50c0...c1563b )
by Vladimir
02:57
created

AssetManager::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 6
rs 9.4285
1
<?php
2
3
namespace allejo\stakx\Manager;
4
5
use Symfony\Component\Finder\SplFileInfo;
6
7
class AssetManager extends FileManager
8
{
9
    public function __construct($includes = array(), $excludes = array())
10
    {
11
        parent::__construct();
12
13
        $this->finder = $this->fs->getFinder($includes, $excludes);
14
    }
15
16
    public function copyFiles()
17
    {
18
        /** @var $file SplFileInfo */
19
        foreach ($this->finder as $file)
20
        {
21
            $this->copyToCompiledSite($file);
22
        }
23
    }
24
}