1919 * messageDate?: string|null,
2020 * messageID?: string|null,
2121 * originalFilename?: string|null,
22+ * senderEmail?: string|null,
2223 * size?: int|null,
2324 * url?: string|null,
2425 * }
@@ -66,6 +67,12 @@ final class File implements BaseModel
6667 #[Optional('original_filename ' )]
6768 public ?string $ originalFilename ;
6869
70+ /**
71+ * Email address of the CAS authority who sent this.
72+ */
73+ #[Optional('sender_email ' )]
74+ public ?string $ senderEmail ;
75+
6976 /**
7077 * File size in bytes.
7178 */
@@ -97,6 +104,7 @@ public static function with(
97104 ?string $ messageDate = null ,
98105 ?string $ messageID = null ,
99106 ?string $ originalFilename = null ,
107+ ?string $ senderEmail = null ,
100108 ?int $ size = null ,
101109 ?string $ url = null ,
102110 ): self {
@@ -108,6 +116,7 @@ public static function with(
108116 null !== $ messageDate && $ self ['messageDate ' ] = $ messageDate ;
109117 null !== $ messageID && $ self ['messageID ' ] = $ messageID ;
110118 null !== $ originalFilename && $ self ['originalFilename ' ] = $ originalFilename ;
119+ null !== $ senderEmail && $ self ['senderEmail ' ] = $ senderEmail ;
111120 null !== $ size && $ self ['size ' ] = $ size ;
112121 null !== $ url && $ self ['url ' ] = $ url ;
113122
@@ -182,6 +191,17 @@ public function withOriginalFilename(string $originalFilename): self
182191 return $ self ;
183192 }
184193
194+ /**
195+ * Email address of the CAS authority who sent this.
196+ */
197+ public function withSenderEmail (string $ senderEmail ): self
198+ {
199+ $ self = clone $ this ;
200+ $ self ['senderEmail ' ] = $ senderEmail ;
201+
202+ return $ self ;
203+ }
204+
185205 /**
186206 * File size in bytes.
187207 */
0 commit comments