Permission::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the ICanBoogie package.
5
 *
6
 * (c) Olivier Laviale <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace ICanBoogie\MessageBus\Attribute;
13
14
use Attribute;
15
16
/**
17
 * Identifies a permission required to dispatch a message.
18
 *
19
 * A message can have multiple {@link Permission}s.
20
 *
21
 * @readonly
22
 */
23
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
24
final class Permission
25
{
26
    public function __construct(
27
        public string $permission
28
    ) {
29
    }
30
}
31