Completed
Push — 1.x ( d73ab7...284b84 )
by Akihito
23s queued 10s
created

Transactional::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\AuraSqlModule\Annotation;
6
7
use Attribute;
8
use Doctrine\Common\Annotations\NamedArgumentConstructorAnnotation;
9
10
/**
11
 * @Annotation
12
 * @Target("METHOD")
13
 */
14
#[Attribute(Attribute::TARGET_METHOD)]
15
final class Transactional implements NamedArgumentConstructorAnnotation
16
{
17
    /**
18
     * @var ?array<string>
19
     * @deprecated
20
     */
21
    public $value;
22
23
    /**
24
     * @param array<string> $value
25
     */
26
    public function __construct(array $value = ['pdo'])
27
    {
28
        $this->value = $value;
0 ignored issues
show
Deprecated Code introduced by
The property Ray\AuraSqlModule\Annotation\Transactional::$value has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
29
    }
30
}
31