for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace phpbu\App\Backup;
interface File
{
/**
* Return the filesize.
*
* @return integer
*/
public function getSize(): int;
* Return the filename.
* @return string
public function getFilename(): string;
* Return the full path and filename.
public function getPathname(): string;
* Return last modified date as unix timestamp.
public function getMTime(): int;
* Return whether the file is writable or not.
* @return boolean
public function isWritable(): bool;
* Deletes the file.
* @throws \phpbu\App\Exception
public function unlink();
}