Scalr\Api\Service\User\V1beta0\Adapter\ScalingRule\FreeRamScalingRuleAdapter::_useCachedRam PHP Method

_useCachedRam() public method

public _useCachedRam ( $from, $to, $action )
    public function _useCachedRam($from, $to, $action)
    {
        switch ($action) {
            case static::ACT_CONVERT_TO_OBJECT:
                /* @var $from FarmRoleScalingMetric */
                $to->useCachedRam = $from->settings[FarmRoleScalingMetric::USE_CACHED];
                break;
            case static::ACT_CONVERT_TO_ENTITY:
                /* @var $to FarmRoleScalingMetric */
                $to->settings[FarmRoleScalingMetric::USE_CACHED] = static::convertInputValue('boolean', $from->useCachedRam, 'useCachedRam');
                break;
            case static::ACT_GET_FILTER_CRITERIA:
                return [[]];
        }
    }
FreeRamScalingRuleAdapter