[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /* 4 * This file is part of JSON-API. 5 * 6 * (c) Toby Zerner <[email protected]> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12 namespace Tobscure\JsonApi\Exception\Handler; 13 14 /** 15 * DTO to manage JSON error response handling. 16 */ 17 class ResponseBag 18 { 19 private $status; 20 private $errors; 21 22 /** 23 * @param int $status 24 * @param array $errors 25 */ 26 public function __construct($status, array $errors) 27 { 28 $this->status = $status; 29 $this->errors = $errors; 30 } 31 32 /** 33 * @return array 34 */ 35 public function getErrors() 36 { 37 return $this->errors; 38 } 39 40 /** 41 * @return int 42 */ 43 public function getStatus() 44 { 45 return $this->status; 46 } 47 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |