| 1 | <?php |
||
| 9 | class Label extends FMLLabel |
||
| 10 | { |
||
| 11 | |||
| 12 | const TYPE_NORMAL = "normal"; |
||
| 13 | const TYPE_TITLE = "title"; |
||
| 14 | const TYPE_HEADER = "header"; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Label constructor. |
||
| 18 | * @param string $text |
||
| 19 | * @param string $type |
||
| 20 | * @param string|null $controlId |
||
| 21 | */ |
||
| 22 | public function __construct($text = "", $type = self::TYPE_NORMAL, $controlId = null) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param DOMDocument $domDocument |
||
| 58 | * @return DOMElement |
||
| 59 | */ |
||
| 60 | |||
| 61 | public function render(\DOMDocument $domDocument) |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @param boolean $translate |
||
| 74 | * @return Label |
||
| 75 | */ |
||
| 76 | public function setTranslate($translate) |
||
| 90 | |||
| 91 | public function setTextId($textId) |
||
| 98 | |||
| 99 | } |
||
| 100 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()method in theSoncalls the wrong method in the parent class.