public function _filePath($from, $to, $action)
{
switch ($action) {
case static::ACT_CONVERT_TO_OBJECT:
/* @var $from Entity\ScalingMetric */
if (!empty($from->filePath)) {
$to->filePath = $from->filePath;
}
break;
case static::ACT_CONVERT_TO_ENTITY:
/* @var $to Entity\ScalingMetric */
$this->validateString($from->filePath, 'Property filePath contains invalid characters');
$to->filePath = $from->filePath;
break;
case static::ACT_GET_FILTER_CRITERIA:
return [[]];
}
}