__construct() __construct(string $name, string $value, string $disposition = 'form-data') Constructor Parameters string $name The name of the data. string $value The value of the data. string $disposition The type of disposition to use, defaults to form-data.
disposition() disposition(null|string $disposition = null) : string|null Get/set the disposition type By passing in false you can disable the disposition header from being added. Parameters null|string $disposition Use null to get/string to set. Returns string|null
contentId() contentId(null|string $id = null) : string|null Get/set the contentId for a part. Parameters null|string $id The content id. Returns string|null
filename() filename(null|string $filename = null) : string|null Get/set the filename. Setting the filename to false will exclude it from the generated output. Parameters null|string $filename Use null to get/string to set. Returns string|null
type() type(null|string $type) : string|null Get/set the content type. Parameters null|string $type Use null to get/string to set. Returns string|null
transferEncoding() transferEncoding(null|string $type) : string|null Set the transfer-encoding for multipart. Useful when content bodies are in encodings like base64. Parameters null|string $type The type of encoding the value has. Returns string|null
__toString() __toString() : string Convert the part into a string. Creates a string suitable for use in HTTP requests. Returns string