Passed
Branch master (609f2f)
by Dorian
08:59
created

Library   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getEditors() 0 3 1
A getCategories() 0 3 1
A getBooks() 0 3 1
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;
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