\PhpOffice\PhpSpreadsheet\RichTextTextElement

Summary

Methods
Properties
Constants
__construct()
getText()
setText()
getFont()
getHashCode()
__clone()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$text
N/A

Properties

$text

$text : string

Text.

Type

string

Methods

__construct()

__construct(string  $pText = '') 

Create a new TextElement instance.

Parameters

string $pText

Text

getText()

getText() : string

Get text.

Returns

string —

Text

setText()

setText(  $text) : $this

Set text.

Parameters

$text

string Text

Returns

$this

getHashCode()

getHashCode() : string

Get hash code.

Returns

string —

Hash code

__clone()

__clone() 

Implement PHP __clone to create a deep clone, not just a shallow copy.