mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 17:23:12 +08:00
Make classes readonly when possible
This commit is contained in:
@@ -9,12 +9,12 @@ use Shlinkio\Shlink\Core\Config\NotFoundRedirectConfigInterface;
|
||||
use Shlinkio\Shlink\Core\Config\NotFoundRedirects;
|
||||
use Shlinkio\Shlink\Core\Domain\Entity\Domain;
|
||||
|
||||
final class DomainItem implements JsonSerializable
|
||||
final readonly class DomainItem implements JsonSerializable
|
||||
{
|
||||
private function __construct(
|
||||
private readonly string $authority,
|
||||
public readonly NotFoundRedirectConfigInterface $notFoundRedirectConfig,
|
||||
public readonly bool $isDefault,
|
||||
private string $authority,
|
||||
public NotFoundRedirectConfigInterface $notFoundRedirectConfig,
|
||||
public bool $isDefault,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user