| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Profile extends User |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param Entity $entity |
||
| 17 | * |
||
| 18 | * @return $this |
||
| 19 | */ |
||
| 20 | protected function addCanLogin(Entity $entity): User |
||
| 21 | { |
||
| 22 | $this->form[] = new Input( |
||
| 23 | 'can_login', |
||
| 24 | 'can_login', |
||
| 25 | '1', |
||
| 26 | [], |
||
| 27 | [Html5::ATTR_TYPE => Input::TYPE_HIDDEN] |
||
| 28 | ); |
||
| 29 | |||
| 30 | return $this; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||
| 35 | * |
||
| 36 | * @param string $showUrl |
||
| 37 | * |
||
| 38 | * @return Base |
||
| 39 | */ |
||
| 40 | protected function addDefaultButtons(string $showUrl): Base |
||
| 49 | } |
||
| 50 | } |
||
| 51 |