MicroFrameWork/kernel/Header.php
2024-10-17 16:47:04 +03:00

28 lines
385 B
PHP

<?php
/**
* Created by PhpStorm.
* User: kirill
* Date: 16.06.19
* Time: 0:22
*/
namespace kernel;
class Header
{
protected array $list = [];
public function add($key, $value): void
{
$this->list[$key] = $value;
}
public function set(): void
{
foreach ($this->list as $key=>$v){
header($key . ": " . $v);
}
}
}