src/ServiceManagement/Models/InputEndpoint.php
public static function create($parsed)
    {
        $inputEndpoint = new self();
        $vip = Utilities::tryGetValue($parsed, Resources::XTAG_VIP);
        $port = Utilities::tryGetValue($parsed, Resources::XTAG_PORT);
        $roleName = Utilities::tryGetValue(
            $parsed,
            Resources::XTAG_ROLE_NAME
        );

        $inputEndpoint->setPort($port);
        $inputEndpoint->setRoleName($roleName);
        $inputEndpoint->setVip($vip);

        return $inputEndpoint;
    }
public static function create($parsed)
    {
        $inputEndpoint = new self();
        $vip = Utilities::tryGetValue($parsed, Resources::XTAG_VIP);
        $port = Utilities::tryGetValue($parsed, Resources::XTAG_PORT);
        $roleName = Utilities::tryGetValue(
            $parsed,
            Resources::XTAG_ROLE_NAME
        );

        $inputEndpoint->setPort($port);
        $inputEndpoint->setRoleName($roleName);
        $inputEndpoint->setVip($vip);

        return $inputEndpoint;
    }
public static function create ( $ parsed ) { $ inputEndpoint = new self ( ) ; $ vip = Utilities :: tryGetValue ( $ parsed , Resources :: XTAG_VIP ) ; $ port = Utilities :: tryGetValue ( $ parsed , Resources :: XTAG_PORT ) ; $ roleName = Utilities :: tryGetValue ( $ parsed , Resources :: XTAG_ROLE_NAME ) ; $ inputEndpoint -> setPort ( $ port ) ; $ inputEndpoint -> setRoleName ( $ roleName ) ; $ inputEndpoint -> setVip ( $ vip ) ; return $ inputEndpoint ; }
Creates a new InputEndpoint from parsed response body.

@param array $parsed The parsed response body in array representation

@return InputEndpoint
Creates a new InputEndpoint from parsed response body .