/**
  * @param FileAccessorInterface $fileAccessor
  * @return bool
  */
 public function check(FileAccessorInterface $fileAccessor)
 {
     $fileAccessor->changeDir($this->path);
     $files = $fileAccessor->listFiles();
     return in_array($this->fileName, $files);
 }
 /**
  * @param FileAccessorInterface $fileAccessor
  * @return bool
  */
 public function check(FileAccessorInterface $fileAccessor)
 {
     $fileAccessor->changeDir($this->path);
     $content = $fileAccessor->showFile($this->fileName);
     return preg_match($this->regex, $content);
 }