PHP Class TQ\Vcs\StreamWrapper\FileBuffer\Factory\DefaultFactory

Inheritance: implements TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface
Datei anzeigen Open project: teqneers/php-stream-wrapper-for-git

Public Methods

Method Description
canHandle ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : boolean Returns true if this factory can handle the requested path
createFileBuffer ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : TQ\Vcs\Buffer\FileBufferInterface Returns the file stream to handle the requested path

Method Details

canHandle() public method

Returns true if this factory can handle the requested path
public canHandle ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : boolean
$path TQ\Vcs\StreamWrapper\PathInformationInterface The path information
$mode string The mode used to open the file
return boolean True if this factory can handle the path

createFileBuffer() public method

Returns the file stream to handle the requested path
public createFileBuffer ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : TQ\Vcs\Buffer\FileBufferInterface
$path TQ\Vcs\StreamWrapper\PathInformationInterface The path information
$mode string The mode used to open the path
return TQ\Vcs\Buffer\FileBufferInterface The file buffer to handle the path