refactor: message object properties
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -46,6 +46,16 @@ abstract class MessagePartMutableAbstract extends MessagePartBaseAbstract {
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the part size
|
||||
*
|
||||
* @since 2026.06.15
|
||||
*/
|
||||
public function setSize(?int $value): static {
|
||||
$this->data['size'] = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the MIME type
|
||||
*
|
||||
@@ -102,6 +112,16 @@ abstract class MessagePartMutableAbstract extends MessagePartBaseAbstract {
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the content id
|
||||
*
|
||||
* @since 2026.06.15
|
||||
*/
|
||||
public function setContentId(?string $value): static {
|
||||
$this->data['cid'] = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the language
|
||||
*
|
||||
@@ -130,6 +150,16 @@ abstract class MessagePartMutableAbstract extends MessagePartBaseAbstract {
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the content payload
|
||||
*
|
||||
* @since 2026.06.15
|
||||
*/
|
||||
public function setContent(?string $value): static {
|
||||
$this->data['content'] = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the sub-parts
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user