dns-over-https/lib/QueryEncoderFactory.php

36 lines
729 B
PHP
Raw Normal View History

2019-06-10 21:04:10 +02:00
<?php declare(strict_types=1);
/**
2019-06-11 20:07:46 +02:00
* Creates Encoder objects.
2019-06-10 21:04:10 +02:00
*
* PHP version 5.4
*
* @category LibDNS
* @package Encoder
* @author Chris Wright <https://github.com/DaveRandom>
* @copyright Copyright (c) Chris Wright <https://github.com/DaveRandom>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @version 2.0.0
*/
2019-06-11 20:07:46 +02:00
namespace Amp\DoH;
2019-06-10 21:04:10 +02:00
/**
2019-06-11 20:07:46 +02:00
* Creates Encoder objects.
2019-06-10 21:04:10 +02:00
*
* @category LibDNS
* @package Encoder
* @author Chris Wright <https://github.com/DaveRandom>
*/
class QueryEncoderFactory
{
/**
2019-06-11 20:07:46 +02:00
* Create a new Encoder object.
2019-06-10 21:04:10 +02:00
*
* @return \LibDNS\Encoder\Encoder
*/
public function create(): QueryEncoder
{
return new QueryEncoder();
}
}