1 | <?php |
||
27 | class Version extends AbstractCheck |
||
28 | { |
||
29 | const EDITION_ENTERPRISE = 'Enterprise'; |
||
30 | const EDITION_PROFESSIONAL = 'Professional'; |
||
31 | const EDITION_COMMUNITY = 'Community'; |
||
32 | |||
33 | /** |
||
34 | * Various ways we can sniff out the Magento version |
||
35 | * |
||
36 | * @var string[] |
||
37 | */ |
||
38 | protected $versionCheck = [ |
||
39 | 'FileHash', |
||
40 | 'DownloaderComment', |
||
41 | 'DocComment', |
||
42 | 'VersionController', |
||
43 | ]; |
||
44 | |||
45 | /** |
||
46 | * Guess Magento edition and version |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | public function getInfo() |
||
61 | |||
62 | /** |
||
63 | * Get check object |
||
64 | * |
||
65 | * @param string $name |
||
66 | * |
||
67 | * @return AbstractCheck |
||
68 | */ |
||
69 | protected function getCheck($name) |
||
76 | } |
||
77 |