-
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 support for file timestamps, fix creation of elements through links
- Loading branch information
Showing
28 changed files
with
864 additions
and
26 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 TouchException | ||
* | ||
* Thrown when a touch operation fails | ||
* | ||
* @package Aternos\IO\Exception | ||
*/ | ||
class TouchException 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,24 @@ | ||
<?php | ||
|
||
namespace Aternos\IO\Interfaces\Features; | ||
|
||
use Aternos\IO\Exception\IOException; | ||
use Aternos\IO\Interfaces\IOElementInterface; | ||
|
||
/** | ||
* Interface GetAccessTimestampInterface | ||
* | ||
* Allows getting the access timestamp of an element | ||
* | ||
* @package Aternos\IO\Interfaces\Features | ||
*/ | ||
interface GetAccessTimestampInterface extends IOElementInterface | ||
{ | ||
/** | ||
* Get the access timestamp of the element | ||
* | ||
* @throws IOException | ||
* @return int | ||
*/ | ||
public function getAccessTimestamp(): int; | ||
} |
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,24 @@ | ||
<?php | ||
|
||
namespace Aternos\IO\Interfaces\Features; | ||
|
||
use Aternos\IO\Exception\IOException; | ||
use Aternos\IO\Interfaces\IOElementInterface; | ||
|
||
/** | ||
* Interface GetBirthTimestampInterface | ||
* | ||
* Allows getting the birth timestamp of an element | ||
* | ||
* @package Aternos\IO\Interfaces\Features | ||
*/ | ||
interface GetBirthTimestampInterface extends IOElementInterface | ||
{ | ||
/** | ||
* Get the birth timestamp of the element | ||
* | ||
* @throws IOException | ||
* @return int | ||
*/ | ||
public function getBirthTimestamp(): int; | ||
} |
24 changes: 24 additions & 0 deletions
24
src/Interfaces/Features/GetModificationTimestampInterface.php
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,24 @@ | ||
<?php | ||
|
||
namespace Aternos\IO\Interfaces\Features; | ||
|
||
use Aternos\IO\Exception\IOException; | ||
use Aternos\IO\Interfaces\IOElementInterface; | ||
|
||
/** | ||
* Interface GetModificationTimestampInterface | ||
* | ||
* Allows getting the modification timestamp of an element | ||
* | ||
* @package Aternos\IO\Interfaces\Features | ||
*/ | ||
interface GetModificationTimestampInterface extends IOElementInterface | ||
{ | ||
/** | ||
* Get the modification timestamp of the element | ||
* | ||
* @throws IOException | ||
* @return int | ||
*/ | ||
public function getModificationTimestamp(): int; | ||
} |
24 changes: 24 additions & 0 deletions
24
src/Interfaces/Features/GetStatusChangeTimestampInterface.php
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,24 @@ | ||
<?php | ||
|
||
namespace Aternos\IO\Interfaces\Features; | ||
|
||
use Aternos\IO\Exception\IOException; | ||
use Aternos\IO\Interfaces\IOElementInterface; | ||
|
||
/** | ||
* Interface GetStatusChangeTimestampInterface | ||
* | ||
* Allows getting the timestamp of the last status change | ||
* | ||
* @package Aternos\IO\Interfaces\Features | ||
*/ | ||
interface GetStatusChangeTimestampInterface extends IOElementInterface | ||
{ | ||
/** | ||
* Get the timestamp of the last status change | ||
* | ||
* @throws IOException | ||
* @return int | ||
*/ | ||
public function getStatusChangeTimestamp(): int; | ||
} |
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,27 @@ | ||
<?php | ||
|
||
namespace Aternos\IO\Interfaces\Features; | ||
|
||
use Aternos\IO\Exception\IOException; | ||
use Aternos\IO\Interfaces\IOElementInterface; | ||
|
||
/** | ||
* Interface SetAccessTimestampInterface | ||
* | ||
* Allows setting the access timestamp of an element | ||
* | ||
* @package Aternos\IO\Interfaces\Features | ||
*/ | ||
interface SetAccessTimestampInterface extends IOElementInterface | ||
{ | ||
/** | ||
* Set the access timestamp | ||
* | ||
* This might also change other timestamps | ||
* | ||
* @throws IOException | ||
* @param int $timestamp | ||
* @return $this | ||
*/ | ||
public function setAccessTimestamp(int $timestamp): 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Aternos\IO\Interfaces\Features; | ||
|
||
use Aternos\IO\Exception\IOException; | ||
use Aternos\IO\Interfaces\IOElementInterface; | ||
|
||
/** | ||
* Interface SetBirthTimestampInterface | ||
* | ||
* Allows setting the birth timestamp of an element | ||
* | ||
* @package Aternos\IO\Interfaces\Features | ||
*/ | ||
interface SetBirthTimestampInterface extends IOElementInterface | ||
{ | ||
/** | ||
* Set the birth timestamp | ||
* | ||
* This might also change other timestamps | ||
* | ||
* @throws IOException | ||
* @param int $timestamp | ||
* @return $this | ||
*/ | ||
public function setBirthTimestamp(int $timestamp): static; | ||
} |
27 changes: 27 additions & 0 deletions
27
src/Interfaces/Features/SetModificationTimestampInterface.php
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,27 @@ | ||
<?php | ||
|
||
namespace Aternos\IO\Interfaces\Features; | ||
|
||
use Aternos\IO\Exception\IOException; | ||
use Aternos\IO\Interfaces\IOElementInterface; | ||
|
||
/** | ||
* Interface SetModificationTimestampInterface | ||
* | ||
* Allows setting the modification timestamp of an element | ||
* | ||
* @package Aternos\IO\Interfaces\Features | ||
*/ | ||
interface SetModificationTimestampInterface extends IOElementInterface | ||
{ | ||
/** | ||
* Set the modification timestamp | ||
* | ||
* This might also change other timestamps | ||
* | ||
* @throws IOException | ||
* @param int $timestamp | ||
* @return $this | ||
*/ | ||
public function setModificationTimestamp(int $timestamp): static; | ||
} |
27 changes: 27 additions & 0 deletions
27
src/Interfaces/Features/SetStatusChangeTimestampInterface.php
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,27 @@ | ||
<?php | ||
|
||
namespace Aternos\IO\Interfaces\Features; | ||
|
||
use Aternos\IO\Exception\IOException; | ||
use Aternos\IO\Interfaces\IOElementInterface; | ||
|
||
/** | ||
* Interface SetStatusChangeTimestampInterface | ||
* | ||
* Allows setting the status change timestamp of an element | ||
* | ||
* @package Aternos\IO\Interfaces\Features | ||
*/ | ||
interface SetStatusChangeTimestampInterface extends IOElementInterface | ||
{ | ||
/** | ||
* Set the status change timestamp | ||
* | ||
* This might also change other timestamps | ||
* | ||
* @throws IOException | ||
* @param int $timestamp | ||
* @return $this | ||
*/ | ||
public function setStatusChangeTimestamp(int $timestamp): 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
Oops, something went wrong.