Completed
Push — master ( e00954...1e39f7 )
by Nikita
10:14
created

VirtualExternalModule::__construct()   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 4
1
<?php
0 ignored issues
show
Coding Style introduced by
End of line character is invalid; expected "\n" but found "\r\n"
Loading history...
2
/**
3
 * Created by PhpStorm.
4
 * User: kotenko
5
 * Date: 16.01.2016
6
 * Time: 15:27
7
 */
8
9
namespace samson\core;
10
use samsonframework\core\CompressInterface;
11
use samsonframework\core\ResourcesInterface;
12
use samsonframework\core\SystemInterface;
13
14
15
class VirtualExternalModule extends ExternalModule implements CompressInterface
16
{
17
18
    public function __construct($path, ResourcesInterface $resources, SystemInterface $system, $moduleId = null)
19
    {
20
        $this->id = $moduleId;
21
        parent::__construct($path, $resources, $system);
22
    }
23
24
    /**
25
     * This method should be used to override generic compression logic.
26
     *
27
     * @param mixed $obj Pointer to compressor instance
28
     * @param array|null $code Collection of already compressed code
29
     *
30
     * @return bool False if generic compression needs to be avoided
31
     */
32
    public function beforeCompress(&$obj = null, array &$code = null)
33
    {
34
        // TODO: Implement beforeCompress() method.
35
    }
36
37
    /**
38
     * This method is called after generic compression logic has finished.
39
     *
40
     * @param mixed $obj Pointer to compressor instance
41
     * @param array|null $code Collection of already compressed code
42
     *
43
     * @return bool False if generic compression needs to be avoided
44
     */
45
    public function afterCompress(&$obj = null, array &$code = null)
46
    {
47
        // TODO: Implement afterCompress() method.
48
    }
49
}