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

Library::getBooks()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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