for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Author: Nil Portugués Calderó <[email protected]>
* Date: 12/18/15
* Time: 11:00 PM.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\SchemaOrg\Generator\FileSystem;
* Class InMemoryFileSystem.
class InMemoryFileSystem implements FileSystemInterface
{
private $fileSystem = [];
* @param string $filePath
* @param string $contents
public function write($filePath, $contents)
$this->fileSystem[$filePath] = $contents;
}
* @return string
public function get($filePath)
return $this->fileSystem[$filePath];