PHP 클래스 PHPMD\TextUI\Command

저자: Manuel Pichler ([email protected])
파일 보기 프로젝트 열기: phpmd/phpmd 1 사용 예제들

공개 메소드들

메소드 설명
main ( array $args ) : integer The main method that can be used by a calling shell script, the return value can be used as exit code.
run ( CommandLineOptions $opts, RuleSetFactory $ruleSetFactory ) : integer This method creates a PHPMD instance and configures this object based on the user's input, then it starts the source analysis.

비공개 메소드들

메소드 설명
getVersion ( ) : string Returns the current version number.

메소드 상세

main() 공개 정적인 메소드

The main method that can be used by a calling shell script, the return value can be used as exit code.
public static main ( array $args ) : integer
$args array The raw command line arguments array.
리턴 integer

run() 공개 메소드

The return value of this method can be used as an exit code. A value equal to EXIT_SUCCESS means that no violations or errors were found in the analyzed code. Otherwise this method will return a value equal to EXIT_VIOLATION. The use of flag --ignore-violations-on-exit will result to a EXIT_SUCCESS even if any violation is found.
public run ( CommandLineOptions $opts, RuleSetFactory $ruleSetFactory ) : integer
$opts CommandLineOptions
$ruleSetFactory PHPMD\RuleSetFactory
리턴 integer