@startuml set namespaceSeparator \\ namespace Entity { class Artist {} } namespace Html { namespace Form { class ArtistForm { + __construct(artist : ?Artist := null) + getArtist() : ?Artist + getHtmlForm(action : string) : string + setEntityFromQueryString(): void } } interface StringEscaper << $trait >> { + escapeString(text : ?string) : string + stripTagsAndTrim(text : ?string) : string } } Entity\\Artist <-o "0..1\nartist" Html\\Form\\ArtistForm Html\\StringEscaper <|.. Html\\Form\\ArtistForm : << use >> note left of Html\\Form\\ArtistForm::setEntityFromQueryString throws ParameterException when artist name is missing in the query string end note @enduml