Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
StickySession
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 getCookieName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCookieName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Vultr\VultrPhp\Services\LoadBalancers;
6
7use Vultr\VultrPhp\Util\Model;
8
9/**
10 * Holds sticky session information that is used to generate a request to the api.
11 */
12class StickySession extends Model
13{
14    protected string $cookieName;
15
16    public function getCookieName() : string
17    {
18        return $this->cookieName;
19    }
20
21    public function setCookieName(string $cookie_name) : void
22    {
23        $this->cookieName = $cookie_name;
24    }
25}