PHP Класс Eloquent\Phony\Difference\DifferenceEngine

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.