ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Run.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
7 class Run extends TextElement implements ITextElement
8 {
14  private $font;
15 
21  public function __construct($pText = '')
22  {
23  parent::__construct($pText);
24  // Initialise variables
25  $this->font = new Font();
26  }
27 
33  public function getFont()
34  {
35  return $this->font;
36  }
37 
45  public function setFont(?Font $pFont = null)
46  {
47  $this->font = $pFont;
48 
49  return $this;
50  }
51 
57  public function getHashCode()
58  {
59  return md5(
60  $this->getText() .
61  $this->font->getHashCode() .
62  __CLASS__
63  );
64  }
65 }
getHashCode()
Get hash code.
Definition: Run.php:57
__construct($pText='')
Create a new Run instance.
Definition: Run.php:21
setFont(?Font $pFont=null)
Set font.
Definition: Run.php:45