for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace phpbu\App\Backup\File;
use phpbu\App\Backup\File;
/**
* Remote file class.
*
* @package phpbu
* @subpackage Backup
* @author Sebastian Feldmann <[email protected]>
* @author Vitaly Baev <[email protected]>
* @copyright Sebastian Feldmann <[email protected]>
* @license https://opensource.org/licenses/MIT The MIT License (MIT)
* @link http://phpbu.de/
* @since Class available since Release 5.1.0
*/
abstract class Remote implements File
{
* File size
* @var int
protected $size;
* Filename
* @var string
protected $filename;
* Full path with filename
protected $pathname;
* File's last modified unix timestamp
protected $lastModified;
* Return the filesize.
* @return integer
public function getSize(): int
return $this->size;
}
* Return the filename.
* @return string
public function getFilename(): string
return $this->filename;
* Return the full path and filename.
public function getPathname(): string
return $this->pathname;
* Return last modified date as unix timestamp.
public function getMTime(): int
return $this->lastModified;
* Return whether the file is writable or not.
* @return boolean
public function isWritable(): bool
return true;
* Deletes the file.
* @throws \phpbu\App\Exception
abstract public function unlink();