-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathOption.php
More file actions
30 lines (25 loc) · 781 Bytes
/
Option.php
File metadata and controls
30 lines (25 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
declare(strict_types=1);
/**
* This file is part of phpDocumentor.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @link https://phpdoc.org
*/
namespace phpDocumentor\Guides\RestructuredText\Directives\Attributes;
use Attribute;
use phpDocumentor\Guides\RestructuredText\Directives\OptionType;
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
final class Option
{
public function __construct(
public readonly string $name,
public readonly OptionType $type = OptionType::String,
public readonly mixed $default = null,
public readonly string $description = '',
public readonly string|null $example = null,
) {
}
}