Ejemplo n.º 1
0
 /**
  * Adds a file for compilation.
  *
  * @throws \BLW\Model\FileException If there is an error with the file.
  *
  * @param \BLW\Type\IFile $File
  *            File to add to compiler.
  */
 public function addFile(IFile $File)
 {
     // Is $File invalid?
     if (!$File->isFile() || !$File->isReadable()) {
         // Exception
         throw new FileException($File);
     }
     // Add file
     $this->_Files[] = $File;
 }