PHP Class Akeneo\Component\SpreadsheetParser\Xlsx\ValueTransformer

Author: Antoine Guigan ([email protected])
Show file Open project: akeneo-labs/spreadsheet-parser

Protected Properties

Property Type Description
$dateTransformer Akeneo\Component\SpreadsheetParser\Xlsx\DateTransformer
$sharedStrings SharedStrings
$styles Styles

Public Methods

Method Description
__construct ( Akeneo\Component\SpreadsheetParser\Xlsx\DateTransformer $dateTransformer, SharedStrings $sharedStrings, Styles $styles ) Constructor
transform ( string $value, string $type, string $style ) : mixed Formats a value

Method Details

__construct() public method

Constructor
public __construct ( Akeneo\Component\SpreadsheetParser\Xlsx\DateTransformer $dateTransformer, SharedStrings $sharedStrings, Styles $styles )
$dateTransformer Akeneo\Component\SpreadsheetParser\Xlsx\DateTransformer
$sharedStrings SharedStrings
$styles Styles

transform() public method

Formats a value
public transform ( string $value, string $type, string $style ) : mixed
$value string The value which should be transformed
$type string The type of the value
$style string The style of the value
return mixed

Property Details

$dateTransformer protected property

protected DateTransformer,Akeneo\Component\SpreadsheetParser\Xlsx $dateTransformer
return Akeneo\Component\SpreadsheetParser\Xlsx\DateTransformer

$sharedStrings protected property

protected SharedStrings,Akeneo\Component\SpreadsheetParser\Xlsx $sharedStrings
return SharedStrings

$styles protected property

protected Styles,Akeneo\Component\SpreadsheetParser\Xlsx $styles
return Styles