Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
9 / 9 |
|
100.00% |
6 / 6 |
CRAP | |
100.00% |
1 / 1 |
| InstanceEntity | |
100.00% |
9 / 9 |
|
100.00% |
6 / 6 |
6 | |
100.00% |
1 / 1 |
| getUrl | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setUrl | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getInstance | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setInstance | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getComment | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setComment | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * The Instance entity class. |
| 5 | * This Source Code Form is subject to the terms of the Mozilla Public License, |
| 6 | * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
| 7 | * obtain one at https://mozilla.org/MPL/2.0/. |
| 8 | * |
| 9 | * @package phpMyFAQ\Entity |
| 10 | * @author Thorsten Rinne <thorsten@phpmyfaq.de> |
| 11 | * @copyright 2022-2026 phpMyFAQ Team |
| 12 | * @license https://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
| 13 | * @link https://www.phpmyfaq.de |
| 14 | * @since 2022-02-22 |
| 15 | */ |
| 16 | |
| 17 | declare(strict_types=1); |
| 18 | |
| 19 | namespace phpMyFAQ\Entity; |
| 20 | |
| 21 | class InstanceEntity |
| 22 | { |
| 23 | private string $url; |
| 24 | |
| 25 | private string $instance; |
| 26 | |
| 27 | private string $comment; |
| 28 | |
| 29 | public function getUrl(): string |
| 30 | { |
| 31 | return $this->url; |
| 32 | } |
| 33 | |
| 34 | public function setUrl(string $url): InstanceEntity |
| 35 | { |
| 36 | $this->url = $url; |
| 37 | return $this; |
| 38 | } |
| 39 | |
| 40 | public function getInstance(): string |
| 41 | { |
| 42 | return $this->instance; |
| 43 | } |
| 44 | |
| 45 | public function setInstance(string $instance): InstanceEntity |
| 46 | { |
| 47 | $this->instance = $instance; |
| 48 | return $this; |
| 49 | } |
| 50 | |
| 51 | public function getComment(): string |
| 52 | { |
| 53 | return $this->comment; |
| 54 | } |
| 55 | |
| 56 | public function setComment(string $comment): InstanceEntity |
| 57 | { |
| 58 | $this->comment = $comment; |
| 59 | return $this; |
| 60 | } |
| 61 | } |