src/Analyzer.php 1 location
|
@@ 45-52 (lines=8) @@
|
42 |
|
* |
43 |
|
* @throws Exception |
44 |
|
*/ |
45 |
|
public function __construct(Config $config) |
46 |
|
{ |
47 |
|
$this->config = $config; |
48 |
|
|
49 |
|
// all paths in build_path are relative to project root, which may not |
50 |
|
// be where this code is run from, so prepend the project root! |
51 |
|
$this->buildPath = $this->config['path'].DIRECTORY_SEPARATOR.$this->config['build_path']; |
52 |
|
} |
53 |
|
|
54 |
|
/** |
55 |
|
* @param string $api |
src/Analyzers/PDepend.php 1 location
|
@@ 52-59 (lines=8) @@
|
49 |
|
/** |
50 |
|
* @param Config $config |
51 |
|
*/ |
52 |
|
public function setConfig(Config $config) |
53 |
|
{ |
54 |
|
$this->config = $config; |
55 |
|
|
56 |
|
// all paths in build_path are relative to project root, which may not |
57 |
|
// be where this code is run from, so prepend the project root! |
58 |
|
$this->buildPath = $this->config['path'].DIRECTORY_SEPARATOR.$this->config['build_path']; |
59 |
|
} |
60 |
|
|
61 |
|
/** |
62 |
|
* @return array |