28 lines
498 B
PHP
28 lines
498 B
PHP
<?php
|
|
|
|
namespace Questionnaire\Parser;
|
|
|
|
use Symfony\Component\Console\Output\OutputInterface;
|
|
|
|
interface ParserInterface
|
|
{
|
|
/**
|
|
* Parses data into given output.
|
|
*/
|
|
public function stream(OutputInterface $output);
|
|
|
|
/**
|
|
* Captures the stream output into a string buffer.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function capture();
|
|
|
|
/**
|
|
* Writes the stream output into given file.
|
|
*
|
|
* @param string $file
|
|
*/
|
|
public function save($file);
|
|
}
|