mirror of
https://github.com/danog/psalm.git
synced 2024-12-12 09:19:40 +01:00
30 lines
430 B
PHP
30 lines
430 B
PHP
|
<?php
|
||
|
|
||
|
namespace CodeInspector;
|
||
|
|
||
|
class Config
|
||
|
{
|
||
|
private static $_config;
|
||
|
|
||
|
public $stopOnError;
|
||
|
|
||
|
private function __construct()
|
||
|
{
|
||
|
self::$_config = $this;
|
||
|
}
|
||
|
|
||
|
public static function getInstance()
|
||
|
{
|
||
|
if (self::$_config) {
|
||
|
return self::$_config;
|
||
|
}
|
||
|
|
||
|
return new self();
|
||
|
}
|
||
|
|
||
|
public function doesInheritVariables($file_name)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
}
|