for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php /** MicroFile */
namespace Micro\File\Drivers;
/**
* Class File is interface for filesystem drivers
*
* @author Oleg Lunegov <[email protected]>
* @link https://github.com/lugnsk/micro
* @copyright Copyright © 2013 Oleg Lunegov
* @license /LICENSE
* @package Micro
* @subpackage File\Drivers
* @version 1.0
* @since 1.0
*/
abstract class File implements IFile
{
/** @var mixed $stream File stream */
protected $stream;
* @inheritdoc
public function exists($filePath)
return $this->file_exists($filePath);
}
public function has($filePath)
public function read($filePath)
return $this->file_get_contents($filePath);
public function getSize($filePath)
return $this->size($filePath);
public function delete($filePath)
return $this->unlink($filePath);