PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.0.10
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.0.10
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
← All changes | vendor/phpoffice/phpexcel/Classes/PHPExcel/RichText/TextElement.php +70 -67 3.1.13.0.10 View file →
@@ -1,8 +1,7 @@
1 1 <?php
2 -
3 2 /**
4 - * PHPExcel_RichText_TextElement
3 + * PHPExcel
5 4 *
6 5 * This library is free software; you can redistribute it and/or
7 6 * modify it under the terms of the GNU Lesser General Public
8 7 * License as published by the Free Software Foundation; either
@@ -18,88 +17,92 @@
18 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 18 *
20 19 * @category PHPExcel
21 20 * @package PHPExcel_RichText
22 - * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
23 - * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
21 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
22 + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
24 23 * @version ##VERSION##, ##DATE##
25 24 */
25 +
26 +
27 +/**
28 + * PHPExcel_RichText_TextElement
29 + *
30 + * @category PHPExcel
31 + * @package PHPExcel_RichText
32 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
33 + */
26 34 class PHPExcel_RichText_TextElement implements PHPExcel_RichText_ITextElement
27 35 {
28 - /**
29 - * Text
30 - *
31 - * @var string
32 - */
33 - private $text;
36 + /**
37 + * Text
38 + *
39 + * @var string
40 + */
41 + private $_text;
34 42
35 43 /**
36 44 * Create a new PHPExcel_RichText_TextElement instance
37 45 *
38 - * @param string $pText Text
46 + * @param string $pText Text
39 47 */
40 48 public function __construct($pText = '')
41 49 {
42 - // Initialise variables
43 - $this->text = $pText;
50 + // Initialise variables
51 + $this->_text = $pText;
44 52 }
45 53
46 - /**
47 - * Get text
48 - *
49 - * @return string Text
50 - */
51 - public function getText()
52 - {
53 - return $this->text;
54 - }
54 + /**
55 + * Get text
56 + *
57 + * @return string Text
58 + */
59 + public function getText() {
60 + return $this->_text;
61 + }
55 62
56 - /**
57 - * Set text
58 - *
59 - * @param $pText string Text
60 - * @return PHPExcel_RichText_ITextElement
61 - */
62 - public function setText($pText = '')
63 - {
64 - $this->text = $pText;
65 - return $this;
66 - }
63 + /**
64 + * Set text
65 + *
66 + * @param $pText string Text
67 + * @return PHPExcel_RichText_ITextElement
68 + */
69 + public function setText($pText = '') {
70 + $this->_text = $pText;
71 + return $this;
72 + }
67 73
68 - /**
69 - * Get font
70 - *
71 - * @return PHPExcel_Style_Font
72 - */
73 - public function getFont()
74 - {
75 - return null;
76 - }
74 + /**
75 + * Get font
76 + *
77 + * @return PHPExcel_Style_Font
78 + */
79 + public function getFont() {
80 + return null;
81 + }
77 82
78 - /**
79 - * Get hash code
80 - *
81 - * @return string Hash code
82 - */
83 - public function getHashCode()
84 - {
85 - return md5(
86 - $this->text .
87 - __CLASS__
88 - );
83 + /**
84 + * Get hash code
85 + *
86 + * @return string Hash code
87 + */
88 + public function getHashCode() {
89 + return md5(
90 + $this->_text
91 + . __CLASS__
92 + );
89 93 }
90 94
91 - /**
92 - * Implement PHP __clone to create a deep clone, not just a shallow copy.
93 - */
94 - public function __clone()
95 - {
96 - $vars = get_object_vars($this);
97 - foreach ($vars as $key => $value) {
98 - if (is_object($value)) {
99 - $this->$key = clone $value;
100 - } else {
101 - $this->$key = $value;
102 - }
103 - }
104 - }
95 + /**
96 + * Implement PHP __clone to create a deep clone, not just a shallow copy.
97 + */
98 + public function __clone() {
99 + $vars = get_object_vars($this);
100 + foreach ($vars as $key => $value) {
101 + if (is_object($value)) {
102 + $this->$key = clone $value;
103 + } else {
104 + $this->$key = $value;
105 + }
106 + }
107 + }
105 108 }