-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add permission get/set feature interfaces, implement for file system
- Loading branch information
Showing
13 changed files
with
311 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Aternos\IO\Exception; | ||
|
||
/** | ||
* Class ChmodException | ||
* | ||
* Exception thrown when a chmod operation fails | ||
* | ||
* @package Aternos\IO\Exception | ||
*/ | ||
class ChmodException extends IOException | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace Aternos\IO\Interfaces\Features; | ||
|
||
use Aternos\IO\Exception\IOException; | ||
use Aternos\IO\Interfaces\IOElementInterface; | ||
use Aternos\IO\Interfaces\Util\PermissionsInterface; | ||
|
||
/** | ||
* Interface GetPermissionsInterface | ||
* | ||
* Allows getting the permissions of an element | ||
* | ||
* @package Aternos\IO\Interfaces\Features | ||
*/ | ||
interface GetPermissionsInterface extends IOElementInterface | ||
{ | ||
/** | ||
* Get the permissions of this element | ||
* | ||
* @throws IOException | ||
* @return PermissionsInterface | ||
*/ | ||
public function getPermissions(): PermissionsInterface; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace Aternos\IO\Interfaces\Features; | ||
|
||
use Aternos\IO\Exception\IOException; | ||
use Aternos\IO\Interfaces\IOElementInterface; | ||
use Aternos\IO\Interfaces\Util\PermissionsInterface; | ||
|
||
/** | ||
* Interface SetPermissionsInterface | ||
* | ||
* Allows setting the permissions of an element | ||
* | ||
* @package Aternos\IO\Interfaces\Features | ||
*/ | ||
interface SetPermissionsInterface extends IOElementInterface | ||
{ | ||
/** | ||
* Set the permissions of this element | ||
* | ||
* @throws IOException | ||
* @param PermissionsInterface $permissions | ||
* @return $this | ||
*/ | ||
public function setPermissions(PermissionsInterface $permissions): static; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.