PHP Class HippoPHP\Hippo\CheckRunner

Show file Open project: hippophp/hippo Class Usage Examples

Public Methods

Method Description
__construct ( FileSystem $fileSystem, CheckRepository $checkRepository, Config $config )
checkFile ( File $file ) : CheckResult[]
checkPath ( string $path ) : boolean
setObserver ( callable $observer )

Protected Methods

Method Description
checkPathFile ( string $path ) : CheckResult[]

Private Methods

Method Description
checkPathDirectory ( string $path ) : CheckResult[]

Method Details

__construct() public method

public __construct ( FileSystem $fileSystem, CheckRepository $checkRepository, Config $config )
$fileSystem FileSystem
$checkRepository CheckRepository
$config HippoPHP\Hippo\Config\Config

checkFile() public method

public checkFile ( File $file ) : CheckResult[]
$file File
return CheckResult[]

checkPath() public method

public checkPath ( string $path ) : boolean
$path string
return boolean if there were no errors

checkPathFile() protected method

protected checkPathFile ( string $path ) : CheckResult[]
$path string
return CheckResult[]

setObserver() public method

public setObserver ( callable $observer )
$observer callable