![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/demo.cartinsight.co/vendor/zbateson/mail-mime-parser/src/Parser/ |
<?php /** * This file is part of the ZBateson\MailMimeParser project. * * @license http://opensource.org/licenses/bsd-license.php BSD */ namespace ZBateson\MailMimeParser\Parser; use Psr\Http\Message\StreamInterface; use ZBateson\MailMimeParser\Message\PartHeaderContainer; use ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy; /** * Responsible for creating PartBuilder instances. * * @author Zaahid Bateson */ class PartBuilderFactory { /** * Constructs a top-level (message) PartBuilder object and returns it * * @return PartBuilder */ public function newPartBuilder(PartHeaderContainer $headerContainer, StreamInterface $messageStream) { return new PartBuilder($headerContainer, $messageStream); } /** * Constructs a child PartBuilder object with the passed $parent as its * parent, and returns it * * @return PartBuilder */ public function newChildPartBuilder(PartHeaderContainer $headerContainer, ParserPartProxy $parent) { return new PartBuilder( $headerContainer, null, $parent ); } }