public function __construct($docParser = null)
{
if ($docParser === null) {
$docParser = new DocParser();
$docParser->setIgnoreNotImportedAnnotations(true);
$docParser->setImports(['swg' => 'Swagger\\Annotations']);
// Use @SWG\* for swagger annotations.
}
$this->docParser = $docParser;
}