芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/portal.pulsehost.co.uk/vendor/zbateson/mail-mime-parser/src/Container.php
$var === null) { $this->$var = new $class(); } return $this->$var; } /** * Constructs and returns a new MessageParser object. * * @return \ZBateson\MailMimeParser\Message\MessageParser */ public function newMessageParser() { return new MessageParser( $this->getPartFactoryService(), $this->getPartBuilderFactory() ); } /** * Returns a MessageHelperService instance. * * @return MessageHelperService */ public function getMessageHelperService() { if ($this->messageHelperService === null) { $this->messageHelperService = new MessageHelperService( $this->getPartBuilderFactory() ); $this->messageHelperService->setPartFactoryService( $this->getPartFactoryService() ); } return $this->messageHelperService; } /** * Returns a PartFilterFactory instance * * @return PartFilterFactory */ public function getPartFilterFactory() { return $this->getInstance( 'partFilterFactory', __NAMESPACE__ . '\Message\PartFilterFactory' ); } /** * Returns a PartFactoryService singleton. * * @return PartFactoryService */ public function getPartFactoryService() { if ($this->partFactoryService === null) { $this->partFactoryService = new PartFactoryService( $this->getPartFilterFactory(), $this->getStreamFactory(), $this->getPartStreamFilterManagerFactory(), $this->getMessageHelperService() ); } return $this->partFactoryService; } /** * Returns a PartBuilderFactory instance. * * @return PartBuilderFactory */ public function getPartBuilderFactory() { if ($this->partBuilderFactory === null) { $this->partBuilderFactory = new PartBuilderFactory( $this->getHeaderFactory() ); } return $this->partBuilderFactory; } /** * Returns the header factory service instance. * * @return \ZBateson\MailMimeParser\Header\HeaderFactory */ public function getHeaderFactory() { if ($this->headerFactory === null) { $this->headerFactory = new HeaderFactory( $this->getConsumerService(), $this->getMimeLiteralPartFactory() ); } return $this->headerFactory; } /** * Returns a StreamFactory. * * @return StreamFactory */ public function getStreamFactory() { return $this->getInstance( 'streamFactory', __NAMESPACE__ . '\Stream\StreamFactory' ); } /** * Returns a PartStreamFilterManagerFactory. * * @return PartStreamFilterManagerFactory */ public function getPartStreamFilterManagerFactory() { if ($this->partStreamFilterManagerFactory === null) { $this->partStreamFilterManagerFactory = new PartStreamFilterManagerFactory( $this->getStreamFactory() ); } return $this->getInstance( 'partStreamFilterManagerFactory', __NAMESPACE__ . '\Message\Part\PartStreamFilterManagerFactory' ); } /** * Returns a MbWrapper. * * @return MbWrapper */ public function getCharsetConverter() { return new MbWrapper(); } /** * Returns the part factory service * * @return \ZBateson\MailMimeParser\Header\Part\HeaderPartFactory */ public function getHeaderPartFactory() { if ($this->headerPartFactory === null) { $this->headerPartFactory = new HeaderPartFactory($this->getCharsetConverter()); } return $this->headerPartFactory; } /** * Returns the MimeLiteralPartFactory service * * @return \ZBateson\MailMimeParser\Header\Part\MimeLiteralPartFactory */ public function getMimeLiteralPartFactory() { if ($this->mimeLiteralPartFactory === null) { $this->mimeLiteralPartFactory = new MimeLiteralPartFactory($this->getCharsetConverter()); } return $this->mimeLiteralPartFactory; } /** * Returns the header consumer service * * @return \ZBateson\MailMimeParser\Header\Consumer\ConsumerService */ public function getConsumerService() { if ($this->consumerService === null) { $this->consumerService = new ConsumerService( $this->getHeaderPartFactory(), $this->getMimeLiteralPartFactory() ); } return $this->consumerService; } }