| 1 | <?php |
||
| 11 | class FilePathAttachmentParser implements AttachmentParserInterface |
||
| 12 | { |
||
| 13 | use AttachmentHelperTrait; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var \finfo |
||
| 17 | */ |
||
| 18 | private $finfo; |
||
| 19 | |||
| 20 | public function __construct(\finfo $finfo = null) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string|resource|array|Mime\Part $attachment |
||
| 27 | * @param string|null $attachmentName |
||
| 28 | * @return Mime\Part |
||
| 29 | * @throws InvalidArgumentException |
||
| 30 | * @throws InvalidAttachmentException |
||
| 31 | */ |
||
| 32 | public function parse($attachment, string $attachmentName = null): Mime\Part |
||
| 49 | } |
||
| 50 |