Completed
Push — master ( 239a7d...29ee36 )
by Tom
9s
created

DetectionResult::isEnterpriseEdition()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/*
3
 * this file is part of magerun
4
 *
5
 * @author Tom Klingenberg <https://github.com/ktomk>
6
 */
7
8
namespace N98\Magento\Application;
9
10
use N98\Util\Console\Helper\MagentoHelper;
11
12
/**
13
 * Class DetectionResult
14
 *
15
 * @package N98\Magento\Application
16
 */
17
class DetectionResult implements DetectionResultInterface
18
{
19
    /**
20
     * @var bool
21
     */
22
    private $detected;
23
24
    /**
25
     * @var MagentoHelper
26
     */
27
    private $helper;
28
29
    /**
30
     * DetectionResult constructor.
31
     *
32
     * @param MagentoHelper $helper
33
     * @param string $folder
34
     * @param array $subFolders
35
     */
36
    public function __construct(MagentoHelper $helper, $folder, array $subFolders = array())
37
    {
38
        $this->helper = $helper;
39
        $this->detected = $helper->detect($folder, $subFolders);
40
    }
41
42
    /**
43
     * @return bool
44
     */
45
    public function isDetected()
46
    {
47
        return $this->detected;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getRootFolder()
54
    {
55
        return $this->helper->getRootFolder();
56
    }
57
58
    /**
59
     * @return bool
60
     */
61
    public function isEnterpriseEdition()
62
    {
63
        return $this->helper->isEnterpriseEdition();
64
    }
65
66
    /**
67
     * @return int
68
     */
69
    public function getMajorVersion()
70
    {
71
        return $this->helper->getMajorVersion();
72
    }
73
74
    /**
75
     * @return boolean
76
     */
77
    public function isMagerunStopFileFound()
78
    {
79
        return $this->helper->isMagerunStopFileFound();
80
    }
81
82
    /**
83
     * @return string
84
     */
85
    public function getMagerunStopFileFolder()
86
    {
87
        return $this->helper->getMagerunStopFileFolder();
88
    }
89
}
90