for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* this file is part of magerun
*
* @author Tom Klingenberg <https://github.com/ktomk>
*/
namespace N98\Magento\Application;
use N98\Util\Console\Helper\MagentoHelper;
/**
* Class DetectionResult
* @package N98\Magento\Application
class DetectionResult implements DetectionResultInterface
{
* @var bool
private $detected;
* @var MagentoHelper
private $helper;
* DetectionResult constructor.
* @param MagentoHelper $helper
* @param string $folder
* @param array $subFolders
public function __construct(MagentoHelper $helper, $folder, array $subFolders = array())
$this->helper = $helper;
$this->detected = $helper->detect($folder, $subFolders);
}
* @return bool
public function isDetected()
return $this->detected;
* @return string
public function getRootFolder()
return $this->helper->getRootFolder();
public function isEnterpriseEdition()
return $this->helper->isEnterpriseEdition();
* @return int
public function getMajorVersion()
return $this->helper->getMajorVersion();
* @return boolean
public function isMagerunStopFileFound()
return $this->helper->isMagerunStopFileFound();
public function getMagerunStopFileFolder()
return $this->helper->getMagerunStopFileFolder();