| 1 | <?php |
||
| 12 | final class Stack |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $client; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var Profile[] |
||
| 21 | */ |
||
| 22 | private $profiles = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $request; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | private $response; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var bool |
||
| 36 | */ |
||
| 37 | private $failed = false; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $client |
||
| 41 | * @param string $request |
||
| 42 | */ |
||
| 43 | 7 | public function __construct($client, $request) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 1 | public function getClient() |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @param Profile $profile |
||
| 59 | */ |
||
| 60 | 4 | public function addProfile(Profile $profile) |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @return Profile[] |
||
| 67 | */ |
||
| 68 | 2 | public function getProfiles() |
|
| 72 | |||
| 73 | /** |
||
| 74 | * @return string |
||
| 75 | */ |
||
| 76 | 1 | public function getRequest() |
|
| 80 | |||
| 81 | /** |
||
| 82 | * @return string |
||
| 83 | */ |
||
| 84 | 1 | public function getResponse() |
|
| 88 | |||
| 89 | /** |
||
| 90 | * @param string $response |
||
| 91 | */ |
||
| 92 | 2 | public function setResponse($response) |
|
| 96 | |||
| 97 | /** |
||
| 98 | * @return bool |
||
| 99 | */ |
||
| 100 | public function isFailed() |
||
| 104 | |||
| 105 | /** |
||
| 106 | * @param bool $failed |
||
| 107 | */ |
||
| 108 | 1 | public function setFailed($failed) |
|
| 112 | } |
||
| 113 |