CoreFiles by mySites.guru
ResponseBag.php47 lines, 818 bytes, from Joomla_4.2.4-Stable-Full_Package.zip
Raw History Compare with 4.2.3
md5
5514953743f575438cffadab14d34905
sha1
64cfb7a2f8fac69a1dbf47b3906650f86b51800a
sha256
54b898a974687a91af4007ac60ef291ab9361b641041dcdee0c5dd7d5f5bfe0d
<?php

/*
 * This file is part of JSON-API.
 *
 * (c) Toby Zerner <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Tobscure\JsonApi\Exception\Handler;

/**
 * DTO to manage JSON error response handling.
 */
class ResponseBag
{
    private $status;
    private $errors;

    /**
     * @param int $status
     * @param array $errors
     */
    public function __construct($status, array $errors)
    {
        $this->status = $status;
        $this->errors = $errors;
    }

    /**
     * @return array
     */
    public function getErrors()
    {
        return $this->errors;
    }

    /**
     * @return int
     */
    public function getStatus()
    {
        return $this->status;
    }
}

The same content is in 295 releases, Joomla 4.0.0-alpha7 to 6.3.0-alpha1. See them all, or every version of this file.