<?php
namespace PhpOffice\PhpSpreadsheet\RichText;
class TextElement implements ITextElement
{
/**
* Text.
*
* @var string
*/
private $text;
/**
* Create a new TextElement instance.
*
* @param string $text Text
*/
public function __construct($text = '')
{
// Initialise variables
$this->text = $text;
}
/**
* Get text.
*
* @return string Text
*/
public function getText()
{
return $this->text;
}
/**
* Set text.
*
* @param string $text Text
*
* @return $this
*/
public function setText($text)
{
$this->text = $text;
return $this;
}
/**
* Get font. For this class, the return value is always null.
*
* @return null|\PhpOffice\PhpSpreadsheet\Style\Font
*/
public function getFont()
{
return null;
}
/**
* Get hash code.
*
* @return string Hash code
*/
public function getHashCode()
{
return md5(
$this->text .
__CLASS__
);
}
}
How To Payment
Making a payment on our website is quick and secure. Start by logging in or creating an account. Select your preferred payment method, input the required details, and review the information. Once you confirm everything is correct, click on the "Submit Payment" button. You’ll receive instant confirmation and can track your payment status through your account dashboard. It’s an easy and secure process.