PluginProbe
wpDataTables – WordPress Data Table, Dynamic Tables & Table Charts Plugin / 6.5.1.7
wpDataTables – WordPress Data Table, Dynamic Tables & Table Charts Plugin v6.5.1.7
6.5.1.7 6.5.1.6 6.5.1.5 6.5.1.4 6.5.1.3 6.5.1.2 6.5.1.1 6.5.0.9 6.5.0.8 6.5.0.7 6.5.0.6 trunk 3.4.2.40 3.4.2.41 3.4.2.42 3.4.2.43 3.4.2.44 3.4.2.45 3.4.2.46 3.4.2.47 3.4.2.48 3.4.2.49 3.4.2.50 6.3.2 6.3.3.1 All 47 releases
wpdatatables / lib / phpoffice / phpspreadsheet / src / PhpSpreadsheet / RichText / TextElement.php

TextElement.php in wpDataTables – WordPress Data Table, Dynamic Tables & Table Charts Plugin 6.5.1.7, at lib/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/TextElement.php

72 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 class TextElement implements ITextElement
6 {
7 /**
8 * Text.
9 *
10 * @var string
11 */
12 private $text;
13
14 /**
15 * Create a new TextElement instance.
16 *
17 * @param string $text Text
18 */
19 public function __construct($text = '')
20 {
21 // Initialise variables
22 $this->text = $text;
23 }
24
25 /**
26 * Get text.
27 *
28 * @return string Text
29 */
30 public function getText()
31 {
32 return $this->text;
33 }
34
35 /**
36 * Set text.
37 *
38 * @param string $text Text
39 *
40 * @return $this
41 */
42 public function setText($text)
43 {
44 $this->text = $text;
45
46 return $this;
47 }
48
49 /**
50 * Get font. For this class, the return value is always null.
51 *
52 * @return null|\PhpOffice\PhpSpreadsheet\Style\Font
53 */
54 public function getFont()
55 {
56 return null;
57 }
58
59 /**
60 * Get hash code.
61 *
62 * @return string Hash code
63 */
64 public function getHashCode()
65 {
66 return md5(
67 $this->text .
68 __CLASS__
69 );
70 }
71 }
72