'vote' =>
$vote,
]);
} /**
* @return array{valFrom: int, valTo: int|null, from: int, to: int|null, price: float, pseudoprice: float, referenceprice: float|null, regulationPrice: float|null}
*/
public function convertPriceStruct(Price
$price) { $data =
[ 'valFrom' =>
$price->
getFrom(),
'valTo' =>
$price->
getTo(),
'from' =>
$price->
getFrom(),
'to' =>
$price->
getTo(),
'price' =>
$price->
getCalculatedPrice(),
'pseudoprice' =>
$price->
getCalculatedPseudoPrice(),
'referenceprice' =>
$price->
getCalculatedReferencePrice(),
'regulationPrice' =>
$price->
getCalculatedRegulationPrice(),
];
return $this->eventManager->
filter('Legacy_Struct_Converter_Convert_Price',
$data,
[ 'price' =>
$price,
]);
}