| Total Complexity | 4 | 
| Total Lines | 41 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); | ||
| 21 | class Response | ||
| 22 | { | ||
| 23 | /** | ||
| 24 | * The response provided from the mandrill sdk is an array | ||
| 25 | * we'll just store it in here for now | ||
| 26 | * | ||
| 27 | * @var array $response | ||
| 28 | */ | ||
| 29 | protected $response; | ||
| 30 | |||
| 31 | /** | ||
| 32 | * Response constructor. | ||
| 33 | * | ||
| 34 | * @param array $mandrillResponse | ||
| 35 | */ | ||
| 36 | public function __construct(array $mandrillResponse) | ||
| 39 | } | ||
| 40 | |||
| 41 | /** | ||
| 42 | * @param string $index | ||
| 43 | * | ||
| 44 | * @return mixed | ||
| 45 | */ | ||
| 46 | public function get(string $index) | ||
| 52 | } | ||
| 53 | |||
| 54 | /** | ||
| 55 | * Return the raw array provided by mandrill | ||
| 56 | * | ||
| 57 | * @return array | ||
| 58 | */ | ||
| 59 | public function toArray() | ||
| 64 |