Lines
100.00%
9 / 9
Methods
100.00%
6 / 6
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| 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 | ||
| 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 | } |