CardsList   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCards() 0 6 1
1
<?php
2
3
namespace Viktoras\Scryfall\Client\Response\Cards;
4
5
use Viktoras\Scryfall\Client\Response\AbstractResponse;
6
use Viktoras\Scryfall\Entities\Card;
7
use Viktoras\Scryfall\Entities\ListObject;
8
use Viktoras\Scryfall\Entities\ObjectInterface;
9
10
class CardsList extends AbstractResponse
11
{
12
    /**
13
     * @return ObjectInterface[]|Card[]
14
     */
15
    public function getCards(): array
16
    {
17
        /** @var ListObject $list */
18
        $list = $this->getObject();
19
20
        return $list->getObjects();
21
    }
22
}
23