Scalr\LogCollector\Writers\AbstractWriter::__construct PHP Метод

__construct() публичный Метод

Constructor. Instantiates the writer.
public __construct ( string $proto = "http", string $path = "localhost", integer $port = 8888, integer $timeout = 1 )
$proto string optional Protocol to use, e.g. http, tcp, udp. Optional.
$path string optional Either a local FS path or hostname/IP for remote.
$port integer optional Port to use if connected to a remote host.
$timeout integer optional How long to wait for reply from the remote end. (seconds)
    public function __construct($proto = "http", $path = "localhost", $port = 8888, $timeout = 1)
    {
        $this->scheme = $proto;
        $this->host = $path;
        $this->port = $port;
        $this->timeout = $timeout;
    }