Scalr\Api\Service\User\V1beta0\Adapter\FarmRoleAdapter::_instance PHP Method

_instance() public method

public _instance ( $from, $to, $action )
    public function _instance($from, $to, $action)
    {
        switch ($action) {
            case static::ACT_CONVERT_TO_OBJECT:
                /* @var $from FarmRole */
                $to->instance = static::getInstanceConfiguration($from);
                break;
            case static::ACT_CONVERT_TO_ENTITY:
                /* @var $to FarmRole */
                static::setupInstanceConfiguration($to, $from->instance);
                break;
            case static::ACT_GET_FILTER_CRITERIA:
                return [[]];
        }
    }