@slavcodev An attachment is composed by a $path, you are right :), and by a $mimeType.

So you can replace the construct with following lines:

```php
private $path;
private $mimeType;

public function __construct($path, $mimetype)
{
//...
```

Thanks.