PHP Class Sonata\Component\Transformer\Pool

Show file Open project: sonata-project/ecommerce Class Usage Examples

Protected Properties

Property Type Description
$transformer array

Public Methods

Method Description
addTransformer ( string $type, BaseTransformer $instance ) Add a transformer into into the pool.
getTransformer ( string $type ) : BaseTransformer return a Transformer Object.
getTransformers ( ) : array

Method Details

addTransformer() public method

Add a transformer into into the pool.
public addTransformer ( string $type, BaseTransformer $instance )
$type string
$instance BaseTransformer

getTransformer() public method

return a Transformer Object.
public getTransformer ( string $type ) : BaseTransformer
$type string
return BaseTransformer

getTransformers() public method

public getTransformers ( ) : array
return array of transformer methods

Property Details

$transformer protected property

protected array $transformer
return array