PHP Class Sonata\Exporter\Writer\FormattedBoolWriter

Author: Robin Chalas ([email protected])
Inheritance: implements Sonata\Exporter\Writer\WriterInterface
Show file Open project: sonata-project/exporter Class Usage Examples

Protected Properties

Property Type Description
$falseLabel string
$trueLabel string
$writer Sonata\Exporter\Writer\WriterInterface

Public Methods

Method Description
__construct ( Sonata\Exporter\Writer\WriterInterface $writer, string $trueLabel = 'yes', string $falseLabel = 'no' )
close ( )
open ( )
write ( array $data )

Method Details

__construct() public method

public __construct ( Sonata\Exporter\Writer\WriterInterface $writer, string $trueLabel = 'yes', string $falseLabel = 'no' )
$writer Sonata\Exporter\Writer\WriterInterface
$trueLabel string
$falseLabel string

close() public method

public close ( )

open() public method

public open ( )

write() public method

public write ( array $data )
$data array

Property Details

$falseLabel protected property

protected string $falseLabel
return string

$trueLabel protected property

protected string $trueLabel
return string

$writer protected property

protected WriterInterface,Sonata\Exporter\Writer $writer
return Sonata\Exporter\Writer\WriterInterface