allow vendord
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
This commit is contained in:
65
vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/Run.php
vendored
Normal file
65
vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/Run.php
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
<?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__
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user