for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare( strict_types = 1 );
namespace FileFetcher;
/**
* @since 4.2
*
* @licence BSD-3-Clause
* @author Jeroen De Dauw < [email protected] >
*/
class StubFileFetcher implements FileFetcher {
private $stubReturnValue;
public function __construct( string $stubReturnValue ) {
$this->stubReturnValue = $stubReturnValue;
}
// @codingStandardsIgnoreStart
public function fetchFile( string $fileUrl ): string {
// @codingStandardsIgnoreEnd
return $this->stubReturnValue;