Scalr\Api\Service\User\V1beta0\Adapter\ScalingMetricAdapter::_filePath PHP Method

_filePath() public method

public _filePath ( $from, $to, $action )
    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 [[]];
        }
    }