src/Factory/PHPMD/PHPMDFactoryInterface.php
<?php
namespace DigipolisGent\Robo\Task\CodeValidation\Factory\PHPMD;
interface PHPMDFactoryInterface
{
/**
* Create a new PHPMD instance.
*
* @param array $extensions
* Extensions without leading dot.
* @param array $ignorePatterns
* List of ignore patterns.
*
* @return \PHPMD\PHPMD
*/
public static function create($extensions, $ignorePatterns);
/**
* Create a PHPMD renderer.
*
* @param string $format
* The format for the render.
* @param string $reportFile
* The file the renderer should write its output to.
*
* @return \PHPMD\AbstractRenderer
*/
public static function createRenderer($format, $reportFile = null);
/**
* Create a ruleset factory.
*
* @param int $minimumPriority
* The minimum priority value.
*
* @return \PHPMD\RuleSetFactory
*/
public static function createRuleSetFactory($minimumPriority);
}