Initial Commit

This commit is contained in:
David Stone
2024-11-30 18:24:12 -07:00
commit e8f7955c1c
5432 changed files with 1397750 additions and 0 deletions

View File

@ -0,0 +1,39 @@
<?php
declare (strict_types=1);
/**
* Creates DecodingContext objects
*
* PHP version 5.4
*
* @category LibDNS
* @package Decoder
* @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
*/
namespace WP_Ultimo\Dependencies\LibDNS\Decoder;
use WP_Ultimo\Dependencies\LibDNS\Packets\Packet;
use WP_Ultimo\Dependencies\LibDNS\Packets\LabelRegistry;
/**
* Creates DecodingContext objects
*
* @category LibDNS
* @package Decoder
* @author Chris Wright <https://github.com/DaveRandom>
*/
class DecodingContextFactory
{
/**
* Create a new DecodingContext object
*
* @param \LibDNS\Packets\Packet $packet The packet to be decoded
* @return \LibDNS\Decoder\DecodingContext
*/
public function create(Packet $packet) : DecodingContext
{
return new DecodingContext($packet, new LabelRegistry());
}
}