LocalizedObject::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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