ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\RichText\Run Class Reference
+ Inheritance diagram for PhpOffice\PhpSpreadsheet\RichText\Run:
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\RichText\Run:

Public Member Functions

 __construct ($pText='')
 Create a new Run instance. More...
 
 getFont ()
 Get font. More...
 
 setFont (?Font $pFont=null)
 Set font. More...
 
 getHashCode ()
 Get hash code. More...
 
- Public Member Functions inherited from PhpOffice\PhpSpreadsheet\RichText\TextElement
 __construct ($pText='')
 Create a new TextElement instance. More...
 
 getText ()
 Get text. More...
 
 setText ($text)
 Set text. More...
 
 getFont ()
 Get font. More...
 
 getHashCode ()
 Get hash code. More...
 
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy. More...
 

Private Attributes

 $font
 

Detailed Description

Definition at line 7 of file Run.php.

Constructor & Destructor Documentation

◆ __construct()

PhpOffice\PhpSpreadsheet\RichText\Run::__construct (   $pText = '')

Create a new Run instance.

Parameters
string$pTextText

Definition at line 21 of file Run.php.

22  {
23  parent::__construct($pText);
24  // Initialise variables
25  $this->font = new Font();
26  }

Member Function Documentation

◆ getFont()

PhpOffice\PhpSpreadsheet\RichText\Run::getFont ( )

Get font.

Returns
null|

Implements PhpOffice\PhpSpreadsheet\RichText\ITextElement.

Definition at line 33 of file Run.php.

References PhpOffice\PhpSpreadsheet\RichText\Run\$font.

34  {
35  return $this->font;
36  }

◆ getHashCode()

PhpOffice\PhpSpreadsheet\RichText\Run::getHashCode ( )

Get hash code.

Returns
string Hash code

Implements PhpOffice\PhpSpreadsheet\RichText\ITextElement.

Definition at line 57 of file Run.php.

References PhpOffice\PhpSpreadsheet\RichText\ITextElement\getText().

58  {
59  return md5(
60  $this->getText() .
61  $this->font->getHashCode() .
62  __CLASS__
63  );
64  }
+ Here is the call graph for this function:

◆ setFont()

PhpOffice\PhpSpreadsheet\RichText\Run::setFont ( ?Font  $pFont = null)

Set font.

Parameters
Font$pFontFont
Returns
$this

Definition at line 45 of file Run.php.

Referenced by PhpOffice\PhpSpreadsheet\RichText\RichText\__construct().

46  {
47  $this->font = $pFont;
48 
49  return $this;
50  }
+ Here is the caller graph for this function:

Field Documentation

◆ $font

PhpOffice\PhpSpreadsheet\RichText\Run::$font
private

Definition at line 14 of file Run.php.

Referenced by PhpOffice\PhpSpreadsheet\RichText\Run\getFont().


The documentation for this class was generated from the following file: