PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.10.7
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.10.7
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
visualizer / vendor / phpoffice / phpspreadsheet / src / PhpSpreadsheet / RichText / Run.php

Run.php in Visualizer – Tables & Charts Manager with Built-in AI Generator 3.10.7, at vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/Run.php

66 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace PhpOffice\PhpSpreadsheet\RichText;
4
5 use PhpOffice\PhpSpreadsheet\Style\Font;
6
7 class Run extends TextElement implements ITextElement
8 {
9 /**
10 * Font.
11 *
12 * @var Font
13 */
14 private $font;
15
16 /**
17 * Create a new Run instance.
18 *
19 * @param string $pText Text
20 */
21 public function __construct($pText = '')
22 {
23 parent::__construct($pText);
24 // Initialise variables
25 $this->font = new Font();
26 }
27
28 /**
29 * Get font.
30 *
31 * @return null|\PhpOffice\PhpSpreadsheet\Style\Font
32 */
33 public function getFont()
34 {
35 return $this->font;
36 }
37
38 /**
39 * Set font.
40 *
41 * @param Font $pFont Font
42 *
43 * @return ITextElement
44 */
45 public function setFont(Font $pFont = null)
46 {
47 $this->font = $pFont;
48
49 return $this;
50 }
51
52 /**
53 * Get hash code.
54 *
55 * @return string Hash code
56 */
57 public function getHashCode()
58 {
59 return md5(
60 $this->getText() .
61 $this->font->getHashCode() .
62 __CLASS__
63 );
64 }
65 }
66