1<?php
2
3namespace Facebook\WebDriver\Remote;
4
5class WebDriverResponse
6{
7    /**
8     * @var int
9     */
10    private $status;
11    /**
12     * @var mixed
13     */
14    private $value;
15    /**
16     * @var string
17     */
18    private $sessionID;
19
20    /**
21     * @param null|string $session_id
22     */
23    public function __construct($session_id = null)
24    {
25        $this->sessionID = $session_id;
26    }
27
28    /**
29     * @return null|int
30     */
31    public function getStatus()
32    {
33        return $this->status;
34    }
35
36    /**
37     * @param int $status
38     * @return WebDriverResponse
39     */
40    public function setStatus($status)
41    {
42        $this->status = $status;
43
44        return $this;
45    }
46
47    /**
48     * @return mixed
49     */
50    public function getValue()
51    {
52        return $this->value;
53    }
54
55    /**
56     * @param mixed $value
57     * @return WebDriverResponse
58     */
59    public function setValue($value)
60    {
61        $this->value = $value;
62
63        return $this;
64    }
65
66    /**
67     * @return null|string
68     */
69    public function getSessionID()
70    {
71        return $this->sessionID;
72    }
73
74    /**
75     * @param mixed $session_id
76     * @return WebDriverResponse
77     */
78    public function setSessionID($session_id)
79    {
80        $this->sessionID = $session_id;
81
82        return $this;
83    }
84}
85