public function attach($pathToFile, array $options = []) { $this->attachments[] = ['path' => $pathToFile, 'options' => $options]; return $this; }