QueueData::__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 QueueData
7
{
8
    public function __construct(
9
        public bool    $enabled = false,
10
        public string  $name = 'default',
11
        public ?string $connection = null,
12
        public int     $timeout = 900
13
    ) {}
14
15
    public static function make(bool $enabled = false, string $name = 'default', ?string $connection = null, int $timeout = 900): self
16
    {
17
        return new self($enabled, $name, $connection, $timeout);
18
    }
19
}
20