} /**
* @return array
*/
public function convertVoteAverageStruct(VoteAverage
$average) { $data =
[ 'average' =>
round($average->
getAverage(), 1
),
'count' =>
$average->
getCount(),
'pointCount' =>
$average->
getPointCount(),
'attributes' =>
$average->
getAttributes(),
];
if ($average->
hasAttribute('core'
)) { $data['attribute'
] =
$average->
getAttribute('core'
);
} return $this->eventManager->
filter('Legacy_Struct_Converter_Convert_Vote_Average',
$data,
[ 'average' =>
$average,
]);
}