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

AssetManager   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 3
lcom 1
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A copyFiles() 0 8 2
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
}