OptimizeResult::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

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