File "Header.php"
Full Path: /var/www/html/back/vendor/knuckleswtf/scribe/src/Attributes/Header.php
File size: 460 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Knuckles\Scribe\Attributes;
use Attribute;
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD | Attribute::TARGET_CLASS)]
class Header
{
public function __construct(
public string $name,
public mixed $example = null
) {
}
public function toArray()
{
return [
"name" => $this->name,
"example" => $this->example,
];
}
}