QueueData   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A make() 0 3 1
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