<?php
// Own namespace
-namespace CoreFramework\Deprecated;
+namespace Org\Mxchange\CoreFramework\FileSystem;
// Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
+
+// Import SPL stuff
+use \SplFileInfo;
/**
* An exception thrown when a file is read-protected
* @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.shipsimu.org
- * @deprecated Don't read this anymore
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/**
* The constructor
*
- * @param $fileName File which cannot be read from
+ * @param $infoInstance An instance of a SplFileInfo class
* @param $code Code number for the exception
* @return void
*/
- public function __construct ($fileName, $code) {
+ public function __construct (SplFileInfo $infoInstance, $code) {
// Add a message around the missing class
- $message = sprintf('File %s is read-protected. Please set read access rights (CHMOD).', $fileName);
+ $message = sprintf('File %s is read-protected. Please set read access rights (CHMOD).', $infoInstance->getPathname());
// Call parent constructor
parent::__construct($message, $code);