DeleteExistingCommentsPostHeaderDto   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A __construct() 0 2 1
1
<?php
2
3
namespace App\Modules\Comments\Domain\Dto;
4
5
use Symfony\Component\Uid\Ulid;
6
7
class DeleteExistingCommentsPostHeaderDto
8
{
9
    /**
10
     * @param Ulid $id
11
     */
12 2
    public function __construct(private Ulid $id)
13
    {
14 2
    }
15
16
    /**
17
     * @return Ulid
18
     */
19 2
    public function getId(): Ulid
20
    {
21 2
        return $this->id;
22
    }
23
24
25
}