Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
4 / 4
CRAP
100.00% covered (success)
100.00%
1 / 1
WorkspaceData
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
4 / 4
4
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
1
 getId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getMode
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2/** @noinspection PhpUnhandledExceptionInspection */
3declare(strict_types=1);
4
5class WorkspaceData extends DataCollectionTypeSafe {
6
7    private int $id;
8    private string $name;
9    private string $mode;
10
11    function __construct(
12        int $id,
13        string $name,
14        string $mode
15    ) {
16
17        $this->id = $id;
18        $this->name = $name;
19        $this->mode = $mode;
20        // TODO check if valid mode
21    }
22
23
24    public function getId(): int {
25
26        return $this->id;
27    }
28
29
30    public function getName(): string {
31
32        return $this->name;
33    }
34
35
36    public function getMode(): string {
37
38        return $this->mode;
39    }
40}