setFile() public method

Sets which file is this check result for.
public setFile ( File $file )
$file File
Example #1
0
 /**
  * Runs checks on the file.
  *
  * @param \HippoPHP\Hippo\CheckContext  $checkContext
  * @param \HippoPHP\Hippo\Config\Config $config
  *
  * @return \HippoPHP\Hippo\CheckResult
  */
 public function checkFile(CheckContext $checkContext, Config $config)
 {
     $this->checkResult = new CheckResult();
     $this->checkResult->setFile($checkContext->getFile());
     $this->checkFileInternal($checkContext, $config);
     return $this->checkResult;
 }