OptimizeResult   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A make() 0 3 1
A __construct() 0 6 1
1
<?php
2
3
namespace Mostafaznv\PdfOptimizer\DTOs;
4
5
6
readonly class OptimizeResult
7
{
8
    public function __construct(
9
        public bool    $status,
10
        public bool    $isQueued = false,
11
        public ?string $queueId = null,
12
        public string  $message = ''
13
    ) {}
14
15
16
    public static function make(bool $status, bool $isQueued = false, ?string $queueId = null, string $message = ''): self
17
    {
18
        return new self($status, $isQueued, $queueId, $message);
19
    }
20
}
21