PHP 클래스 Eloquent\Phony\Difference\DifferenceEngine

파일 보기 프로젝트 열기: eloquent/phony 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( FeatureDetector $featureDetector ) Construct a new difference engine.
difference ( string $from, string $to ) : string Get the difference between the supplied strings.
instance ( ) : DifferenceEngine Get the static instance of this engine.
setUseColor ( boolean | null $useColor ) Turn on or off the use of ANSI colored output.

메소드 상세

__construct() 공개 메소드

Construct a new difference engine.
public __construct ( FeatureDetector $featureDetector )
$featureDetector Eloquent\Phony\Reflection\FeatureDetector The feature detector to use.

difference() 공개 메소드

Get the difference between the supplied strings.
public difference ( string $from, string $to ) : string
$from string The from value.
$to string The to value.
리턴 string The difference.

instance() 공개 정적인 메소드

Get the static instance of this engine.
public static instance ( ) : DifferenceEngine
리턴 DifferenceEngine The static engine.

setUseColor() 공개 메소드

Pass null to detect automatically.
public setUseColor ( boolean | null $useColor )
$useColor boolean | null True to use color.