Passed
Pull Request — master (#1045)
by Aleksei
10:03
created

Proxy   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 9
ccs 1
cts 1
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Spiral\Core\Attribute;
6
7
/**
8
 * Scoped proxy
9
 *
10
 * @internal We are testing this feature, it may be changed in the future.
11
 */
12
#[\Attribute(\Attribute::TARGET_PARAMETER)]
13
final class Proxy implements Plugin
14
{
15
    /**
16
     * @param bool $magicCall Generate `__call` and `__callStatic` methods in proxy.
17
     */
18 15
    public function __construct(
19
        public bool $magicCall = false,
20
    ) {
21 15
    }
22
}
23