PHP Class Bit3\FakerCli\Command\GenerateCommand

Inheritance: extends Symfony\Component\Console\Command\Command
ファイルを表示 Open project: bit3/faker-cli

Protected Methods

Method Description
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
flattenArray ( $data ) : array Flatten an array.
generateXml ( DOMDocument $doc, mixed $data ) : DOMElement Generate a xml element from the input data.
outputCsv ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, mixed $data ) Generate and output the data as CSV.
outputJson ( Symfony\Component\Console\Output\OutputInterface $output, mixed $data ) Generate and output the data as JSON.
outputPhp ( Symfony\Component\Console\Output\OutputInterface $output, mixed $data ) Generate and output the data as PHP.
outputPrintf ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, mixed $data ) Generate and output the data as PHP.
outputVprintf ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, mixed $data ) Generate and output the data as PHP.
outputXml ( Symfony\Component\Console\Output\OutputInterface $output, mixed $data ) Generate and output the data as XML.

Method Details

configure() protected method

protected configure ( )

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

flattenArray() protected method

Flatten an array.
protected flattenArray ( $data ) : array
$data
return array

generateXml() protected method

Generate a xml element from the input data.
protected generateXml ( DOMDocument $doc, mixed $data ) : DOMElement
$doc DOMDocument
$data mixed
return DOMElement

outputCsv() protected method

Generate and output the data as CSV.
protected outputCsv ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, mixed $data )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$data mixed

outputJson() protected method

Generate and output the data as JSON.
protected outputJson ( Symfony\Component\Console\Output\OutputInterface $output, mixed $data )
$output Symfony\Component\Console\Output\OutputInterface
$data mixed

outputPhp() protected method

Generate and output the data as PHP.
protected outputPhp ( Symfony\Component\Console\Output\OutputInterface $output, mixed $data )
$output Symfony\Component\Console\Output\OutputInterface
$data mixed

outputPrintf() protected method

Generate and output the data as PHP.
protected outputPrintf ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, mixed $data )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$data mixed

outputVprintf() protected method

Generate and output the data as PHP.
protected outputVprintf ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, mixed $data )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$data mixed

outputXml() protected method

Generate and output the data as XML.
protected outputXml ( Symfony\Component\Console\Output\OutputInterface $output, mixed $data )
$output Symfony\Component\Console\Output\OutputInterface
$data mixed