LocalizedObject   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 1
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace ICanBoogie\CLDR\Core;
4
5
/**
6
 * Representation of a localized object.
7
 *
8
 * @template T of object
9
 */
10
abstract class LocalizedObject
11
{
12
    /**
13
     * @phpstan-param T $target The object to localize.
14
     */
15
    public function __construct(
16
        public readonly object $target,
17
        public readonly Locale $locale,
18
    ) {
19
    }
20
}
21