| 1 | <?php |
||
| 20 | class PartBuilderFactory |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var \ZBateson\MailMimeParser\Header\HeaderFactory the HeaderFactory |
||
| 24 | * instance |
||
| 25 | */ |
||
| 26 | protected $headerFactory; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string the PartStream protocol used to create part and content |
||
| 30 | * filenames for fopen |
||
| 31 | */ |
||
| 32 | private $streamWrapperProtocol = null; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Creates a MimePartFactory instance with its dependencies. |
||
| 36 | * |
||
| 37 | * @param HeaderFactory $headerFactory |
||
| 38 | * @param string $streamWrapperProtocol |
||
| 39 | */ |
||
| 40 | public function __construct(HeaderFactory $headerFactory, $streamWrapperProtocol) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Constructs a new PartBuilder object and returns it |
||
| 48 | * |
||
| 49 | * @param \ZBateson\MailMimeParser\Message\Part\MessagePartFactory |
||
| 50 | * $messagePartFactory |
||
| 51 | * @return \ZBateson\MailMimeParser\Message\Part\PartBuilder |
||
| 52 | */ |
||
| 53 | public function newPartBuilder(MessagePartFactory $messagePartFactory) |
||
| 61 | } |
||
| 62 |