123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <?php
- class PHPExcel_RichText_TextElement implements PHPExcel_RichText_ITextElement
- {
-
- private $text;
-
- public function __construct($pText = '')
- {
-
- $this->text = $pText;
- }
-
- public function getText()
- {
- return $this->text;
- }
-
- public function setText($pText = '')
- {
- $this->text = $pText;
- return $this;
- }
-
- public function getFont()
- {
- return null;
- }
-
- public function getHashCode()
- {
- return md5(
- $this->text .
- __CLASS__
- );
- }
-
- public function __clone()
- {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- $this->$key = clone $value;
- } else {
- $this->$key = $value;
- }
- }
- }
- }
|