8000 Added getter for "TextPart::$name" · symfony/symfony@9950c47 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9950c47

Browse files
committed
Added getter for "TextPart::$name"
1 parent 9045ad4 commit 9950c47

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Symfony/Component/Mime/Part/TextPart.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,14 @@ public function setName(string $name): static
101101
return $this;
102102
}
103103

104+
/**
105+
* Gets the name of the file (used by FormDataPart).
106+
*/
107+
public function getName(): ?string
108+
{
109+
return $this->name;
110+
}
111+
104112
public function getBody(): string
105113
{
106114
if (null === $this->seekable) {

0 commit comments

Comments
 (0)
0