@startuml
'https://plantuml.com/sequence-diagram
skinparam style strictuml
skinparam classAttributeIconSize 0
skinparam classFontStyle Bold

hide empty members
title E-Miel

legend bottom left
Un e-miel est composé d'un sujet et d'un contenu, est adressé à des destinataires
et peut contenir des pièces jointes.
end legend

class Personne {
.. Constructors ..
+ <<create>> Personne(prenom: String, nom: String)

.. Getters ..
+ getPrenom(): String
+ getNom(): String

__ Local data __
- prenom: String
- nom: String
}

class "Pièce jointe" as PJ {
.. Constructors ..
+ <<create>> PJ(nom: String, taille: Integer, type: String)

.. Getters ..
+ getType(): String
+ getTaille(): Integer
+ getNom(): String

__ Local data __
- type: String
- taille: Integer
- nom: String
}

class "E-Miel" as EMiel {
.. Constructors ..
+ <<create>> EMiel(subject: String, content: String)

.. Getters ..
+ getSubject(): String
+ getContent(): String

__ Local data __
- subject: String
- content: String
}

Personne -u- "0..*" EMiel : envoie >
EMiel -- "1..*\n- destinataires" Personne : destiné à >
EMiel -- "0..*\n- attachements" PJ : contient >
@enduml