/** * Creates a new InputEndpoint from parsed response body. * * @param array $parsed The parsed response body in array representation. * * @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; }