SemesterEvaluation   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 7
c 1
b 0
f 0
dl 0
loc 38
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getOrganisationEvaluations() 0 3 1
A getMissingOrganisations() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the vseth-semesterly-reports project.
5
 *
6
 * (c) Florian Moser <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace App\Model;
13
14
use App\Entity\Organisation;
15
use App\Model\SemesterEvaluation\OrganisationEvaluation;
16
17
class SemesterEvaluation
18
{
19
    /**
20
     * @var OrganisationEvaluation[]
21
     */
22
    private $organisationEvaluations;
23
24
    /**
25
     * @var Organisation[]
26
     */
27
    private $missingOrganisations;
28
29
    /**
30
     * SemesterEvaluation constructor.
31
     *
32
     * @param OrganisationEvaluation[] $organisationEvaluations
33
     * @param Organisation[] $missingOrganisations
34
     */
35
    public function __construct(array $organisationEvaluations, array $missingOrganisations)
36
    {
37
        $this->organisationEvaluations = $organisationEvaluations;
38
        $this->missingOrganisations = $missingOrganisations;
39
    }
40
41
    /**
42
     * @return OrganisationEvaluation[]
43
     */
44
    public function getOrganisationEvaluations(): array
45
    {
46
        return $this->organisationEvaluations;
47
    }
48
49
    /**
50
     * @return Organisation[]
51
     */
52
    public function getMissingOrganisations(): array
53
    {
54
        return $this->missingOrganisations;
55
    }
56
}
57