123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <?php
- namespace League\Flysystem\Stub;
- use League\Flysystem\Adapter\CanOverwriteFiles;
- use League\Flysystem\AdapterInterface;
- use League\Flysystem\Config;
- /**
- * @codeCoverageIgnore
- */
- class FileOverwritingAdapterStub implements AdapterInterface, CanOverwriteFiles
- {
- public $writtenPath = '';
- public $writtenContents = '';
- public function write($path, $contents, Config $config)
- {
- $this->writtenPath = $path;
- $this->writtenContents = $contents;
- return true;
- }
- public function writeStream($path, $resource, Config $config)
- {
- $this->writtenPath = $path;
- $this->writtenContents = stream_get_contents($resource);
- return true;
- }
- public function update($path, $contents, Config $config)
- {
- }
- public function updateStream($path, $resource, Config $config)
- {
- }
- public function rename($path, $newpath)
- {
- }
- public function copy($path, $newpath)
- {
- }
- public function delete($path)
- {
- }
- public function deleteDir($dirname)
- {
- }
- public function createDir($dirname, Config $config)
- {
- }
- public function setVisibility($path, $visibility)
- {
- }
- public function has($path)
- {
- }
- public function read($path)
- {
- }
- public function readStream($path)
- {
- }
- public function listContents($directory = '', $recursive = false)
- {
- }
- public function getMetadata($path)
- {
- }
- public function getSize($path)
- {
- }
- public function getMimetype($path)
- {
- }
- public function getTimestamp($path)
- {
- }
- public function getVisibility($path)
- {
- }
- }
|