Rewritten:
[core.git] / framework / main / exceptions / file_directory / class_FileIsEmptyException.php
index a44be0273900213f7a02906075f847e3ede53ec2..55fe201efc0306cf721e8b277ddcea2d3f867f2c 100644 (file)
@@ -5,6 +5,9 @@ namespace CoreFramework\Deprecated;
 // Import framework stuff
 use CoreFramework\Generic\FrameworkException;
 
+// Import SPL stuff
+use \SplFileInfo;
+
 /**
  * An exception thrown when a file name is empty or NULL.
  *
@@ -32,11 +35,11 @@ class FileIsEmptyException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param       $fqfn   Ignored
+        * @param       $infoInstance   An instance of a SplFileInfo class (ignored)
         * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct ($fqfn, $code) {
+       public function __construct (SplFileInfo $infoInstance, $code) {
                // Call parent constructor
                parent::__construct('No file name provided.', $code);
        }