ItemRepository::findAllItems()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Rottenwood\KingdomBundle\Entity\Infrastructure;
4
5
/** {@inheritDoc} */
6
class ItemRepository extends AbstractRepository
7
{
8
9
    /**
10
     * @param int $itemId
11
     * @return Item|null
12
     */
13
    public function findById($itemId)
14
    {
15
        return $this->find($itemId);
16
    }
17
18
    /**
19
     * @return Item[]
20
     */
21
    public function findAllItems()
22
    {
23
        return $this->findAll();
24
    }
25
26
    /**
27
     * @param $starterItemsIds
28
     * @return Item[]
29
     */
30
    public function findSeveralByIds($starterItemsIds)
31
    {
32
        return $this->findBy(['id' => $starterItemsIds]);
33
    }
34
}
35