for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Genkgo\Mail\Protocol;
/**
* Class SecureConnectionOptions
* @package Genkgo\Mail\Protocol
* @codeCoverageIgnore
*/
final class SecureConnectionOptions
{
* @var float
private $timeout = 10;
* @var int
private $method;
* SecureConnectionOptions constructor.
* @param int $method
public function __construct(int $method)
$this->method = $method;
}
* @param float $connectionTimeout
* @return SecureConnectionOptions
public function withTimeout(float $connectionTimeout): SecureConnectionOptions
$clone = clone $this;
$clone->timeout = $connectionTimeout;
return $clone;
public function withMethod(int $method): SecureConnectionOptions
$clone->method = $method;
* @return float
public function getTimeout(): float
return $this->timeout;
* @return int
public function getMethod(): int
return $this->method;