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;
use phpbu\App\Backup\Sync;
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
public function unlink()
throw new \phpbu\App\Exception("Method must be overrided in proper file class");