. */ namespace SP\Storage\File; /** * Interface FileStorageInterface * * @package SP\Storage\File; */ interface FileStorageInterface { /** * @param string $path * * @return mixed * @throws FileException */ public function load($path); /** * @param string $path * @param mixed $data * * @return FileStorageInterface * @throws FileException */ public function save($path, $data); /** * @param string $path * * @return mixed */ public function delete($path); /** * Returns whether the file is expired * * @param string $path * @param int $time * * @return mixed */ public function isExpired($path, $time = 86400); }