k911/swoole-bundle

View on GitHub
src/Server/Exception/UnexpectedPortException.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

declare(strict_types=1);

namespace K911\Swoole\Server\Exception;

/**
 * @internal
 */
final class UnexpectedPortException extends \InvalidArgumentException
{
    public static function with(int $port, int $expectedPort): self
    {
        return new self(\sprintf('Attached Swoole HTTP Server has different port (%s), than expected (%s).', $port, $expectedPort));
    }
}