Completed
Push — master ( af09d7...7599bb )
by Dorian
02:06
created

Library   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 32
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gnutix\Library\Model;
6
7
use Gnutix\Library\Helper\ArrayPopulatedObject;
8
use Gnutix\Library\LibraryInterface;
9
10
class Library extends ArrayPopulatedObject implements LibraryInterface
11
{
12
    /** @var Book[] */
13
    protected array $books;
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected T_ARRAY, expecting T_FUNCTION or T_CONST
Loading history...
14
15
    /** @var Category[] */
16
    protected array $categories;
17
18
    /** @var Editor[] */
19
    protected array $editors;
20
21
    /**
22
     * @return Book[]
23
     */
24
    public function getBooks(): array
25
    {
26
        return $this->books;
27
    }
28
29
    /**
30
     * @return Editor[]
31
     */
32
    public function getEditors(): array
33
    {
34
        return $this->editors;
35
    }
36
37
    /**
38
     * @return Category[]
39
     */
40
    public function getCategories(): array
41
    {
42
        return $this->categories;
43
    }
44
}
45