| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class CommentedItem |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var mixed |
||
| 11 | */ |
||
| 12 | private $item; |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $comment; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param mixed $item |
||
| 20 | * @param string $comment |
||
| 21 | */ |
||
| 22 | public function __construct($item, string $comment) |
||
| 23 | { |
||
| 24 | |||
| 25 | $this->item = $item; |
||
| 26 | $this->comment = $comment; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return mixed |
||
| 31 | */ |
||
| 32 | public function getItem() |
||
| 33 | { |
||
| 34 | return $this->item; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getComment(): string |
||
| 43 | } |
||
| 44 | } |
||
| 45 |