PHP Класс PhpCsFixer\Cache\FileCacheManager

Cache is supported only for phar version and version installed via composer. File will be processed by PHP CS Fixer only if any of the following conditions is fulfilled: - cache is corrupt - fixer version changed - rules changed - file is new - file changed
Автор: Dariusz Rumiński ([email protected])
Наследование: implements PhpCsFixer\Cache\CacheManagerInterface
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( PhpCsFixer\Cache\FileHandlerInterface $handler, PhpCsFixer\Cache\SignatureInterface $signature, boolean $isDryRun = false, PhpCsFixer\Cache\DirectoryInterface $cacheDirectory = null )
__destruct ( )
needFixing ( $file, $fileContent )
setFile ( $file, $fileContent )

Приватные методы

Метод Описание
calcHash ( $content )
readCache ( )
writeCache ( )

Описание методов

__construct() публичный Метод

public __construct ( PhpCsFixer\Cache\FileHandlerInterface $handler, PhpCsFixer\Cache\SignatureInterface $signature, boolean $isDryRun = false, PhpCsFixer\Cache\DirectoryInterface $cacheDirectory = null )
$handler PhpCsFixer\Cache\FileHandlerInterface
$signature PhpCsFixer\Cache\SignatureInterface
$isDryRun boolean
$cacheDirectory PhpCsFixer\Cache\DirectoryInterface

__destruct() публичный Метод

public __destruct ( )

needFixing() публичный Метод

public needFixing ( $file, $fileContent )

setFile() публичный Метод

public setFile ( $file, $fileContent )