<?php
namespace PhpOffice\PhpSpreadsheet\RichText;
use PhpOffice\PhpSpreadsheet\Style\Font;
class Run extends TextElement implements ITextElement
{
/**
* Font.
*
* @var ?Font
*/
private $font;
/**
* Create a new Run instance.
*
* @param string $text Text
*/
public function __construct($text = '')
{
parent::__construct($text);
// Initialise variables
$this->font = new Font();
}
/**
* Get font.
*
* @return null|\PhpOffice\PhpSpreadsheet\Style\Font
*/
public function getFont()
{
return $this->font;
}
/**
* Set font.
*
* @param Font $font Font
*
* @return $this
*/
public function setFont(?Font $font = null)
{
$this->font = $font;
return $this;
}
/**
* Get hash code.
*
* @return string Hash code
*/
public function getHashCode()
{
return md5(
$this->getText() .
(($this->font === null) ? '' : $this->font->getHashCode()) .
__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.