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
파일 보기 프로젝트 열기: friendsofphp/php-cs-fixer 1 사용 예제들

공개 메소드들

메소드 설명
__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 )