| 1 | <?php |
||
| 2 | namespace EWW\Dpf\Domain\Model; |
||
| 3 | |||
| 4 | /* |
||
| 5 | * This file is part of the TYPO3 CMS project. |
||
| 6 | * |
||
| 7 | * It is free software; you can redistribute it and/or modify it under |
||
| 8 | * the terms of the GNU General Public License, either version 2 |
||
| 9 | * of the License, or any later version. |
||
| 10 | * |
||
| 11 | * For the full copyright and license information, please read the |
||
| 12 | * LICENSE.txt file that was distributed with this source code. |
||
| 13 | * |
||
| 14 | * The TYPO3 project - inspiring people to share! |
||
| 15 | */ |
||
| 16 | |||
| 17 | class SysLanguage extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * uid |
||
| 22 | * |
||
| 23 | * @var integer |
||
| 24 | */ |
||
| 25 | protected $uid; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * pid |
||
| 29 | * |
||
| 30 | * @var integer |
||
| 31 | */ |
||
| 32 | protected $pid; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * title |
||
| 36 | * |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | protected $title = ''; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * flag |
||
| 43 | * |
||
| 44 | * @var string |
||
| 45 | */ |
||
| 46 | protected $flag = ''; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * langIsocode |
||
| 50 | * |
||
| 51 | * @var string |
||
| 52 | */ |
||
| 53 | protected $langIsocode = ''; |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Returns the uid |
||
| 57 | * |
||
| 58 | * @return string $uid |
||
| 59 | */ |
||
| 60 | public function getUid() |
||
| 61 | { |
||
| 62 | return $this->uid; |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Sets the uid |
||
| 67 | * |
||
| 68 | * @param string $uid |
||
| 69 | */ |
||
| 70 | public function setUid($uid) |
||
| 71 | { |
||
| 72 | $this->uid = $uid; |
||
|
0 ignored issues
–
show
|
|||
| 73 | } |
||
| 74 | |||
| 75 | /** |
||
| 76 | * Returns the pid |
||
| 77 | * |
||
| 78 | * @return string $pid |
||
| 79 | */ |
||
| 80 | public function getPid() |
||
| 81 | { |
||
| 82 | return $this->pid; |
||
| 83 | } |
||
| 84 | |||
| 85 | /** |
||
| 86 | * Sets the pid |
||
| 87 | * |
||
| 88 | * @param string $pid |
||
| 89 | */ |
||
| 90 | public function setPid($pid) |
||
| 91 | { |
||
| 92 | $this->pid = $pid; |
||
|
0 ignored issues
–
show
The property
$pid was declared of type integer, but $pid is of type string. Maybe add a type cast?
This check looks for assignments to scalar types that may be of the wrong type. To ensure the code behaves as expected, it may be a good idea to add an explicit type cast. $answer = 42;
$correct = false;
$correct = (bool) $answer;
Loading history...
|
|||
| 93 | } |
||
| 94 | |||
| 95 | /** |
||
| 96 | * Returns the title |
||
| 97 | * |
||
| 98 | * @return string $title |
||
| 99 | */ |
||
| 100 | public function getTitle() |
||
| 101 | { |
||
| 102 | return $this->title; |
||
| 103 | } |
||
| 104 | |||
| 105 | /** |
||
| 106 | * Sets the title |
||
| 107 | * |
||
| 108 | * @param string $title |
||
| 109 | */ |
||
| 110 | public function setTitle($title) |
||
| 111 | { |
||
| 112 | $this->title = $title; |
||
| 113 | } |
||
| 114 | |||
| 115 | /** |
||
| 116 | * Returns the flag |
||
| 117 | * |
||
| 118 | * @return string $flag |
||
| 119 | */ |
||
| 120 | public function getFlag() |
||
| 121 | { |
||
| 122 | return $this->flag; |
||
| 123 | } |
||
| 124 | |||
| 125 | /** |
||
| 126 | * Sets the flag |
||
| 127 | * |
||
| 128 | * @param string $flag |
||
| 129 | */ |
||
| 130 | public function setFlag($flag) |
||
| 131 | { |
||
| 132 | $this->flag = $flag; |
||
| 133 | } |
||
| 134 | |||
| 135 | /** |
||
| 136 | * Returns the langIsocode |
||
| 137 | * |
||
| 138 | * @return string $langIsocode |
||
| 139 | */ |
||
| 140 | public function getLangIsocode() |
||
| 141 | { |
||
| 142 | return $this->langIsocode; |
||
| 143 | } |
||
| 144 | |||
| 145 | /** |
||
| 146 | * Sets the langIsocode |
||
| 147 | * |
||
| 148 | * @param string $langIsocode |
||
| 149 | */ |
||
| 150 | public function setLangIsocode($langIsocode) |
||
| 151 | { |
||
| 152 | $this->langIsocode = $langIsocode; |
||
| 153 | } |
||
| 154 | } |
||
| 155 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.