AbstractClassLoaderModule::setPriority()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php namespace BuildR\ClassLoader\Modules;
2
3
/**
4
 * Abstract class loader module, basically fore the priority changing mechanism.
5
 *
6
 * BuildR PHP Framework
7
 *
8
 * @author Zoltán Borsos <[email protected]>
9
 * @package ClassLoader
10
 * @subpackage Modules
11
 *
12
 * @copyright    Copyright 2015, Zoltán Borsos.
13
 * @license      https://github.com/Zolli/BuildR/blob/master/LICENSE.md
14
 * @link         https://github.com/Zolli/BuildR
15
 */
16
abstract class AbstractClassLoaderModule implements ClassLoaderModuleInterface {
17
18
    /**
19
     * @type int
20
     */
21
    protected $priority = 10;
22
23
    /**
24
     * @inheritDoc
25
     */
26 2
    public function setPriority($priority) {
27 2
        $this->priority = (int) $priority;
28 2
    }
29
30
}
31