23 lines
477 B
PHP
23 lines
477 B
PHP
<?php
|
|
|
|
namespace App\Values\Partner;
|
|
|
|
use Spatie\LaravelData\Data;
|
|
|
|
class PrinterConfig extends Data
|
|
{
|
|
public function __construct(
|
|
public ?string $host = null,
|
|
public ?int $port = 7000,
|
|
public ?int $ssl_port = 7000,
|
|
public ?int $max_upload_size = 1024,
|
|
public bool $enable_debug_logging = false
|
|
)
|
|
{
|
|
}
|
|
|
|
public function networkFormat(): string
|
|
{
|
|
return $this->host . ':' . $this->port;
|
|
}
|
|
}
|