TaskLists::getRequestedResources()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 3
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Scriptotek\Alma\TaskLists;
4
5
use Scriptotek\Alma\Client;
6
use Scriptotek\Alma\Conf\Library;
7
8
class TaskLists
9
{
10
    protected $client;
11
12
    /**
13
     * TaskLists constructor.
14
     *
15
     * @param Client $client
16
     */
17
    public function __construct(Client $client)
18
    {
19
        $this->client = $client;
20
    }
21
22
    public function getLendingRequests(Library $library, $params = [])
23
    {
24
        return new LendingRequests($this->client, $library, $params);
25
    }
26
27
    public function getRequestedResources(Library $library, $circ_desk = 'DEFAULT_CIRC_DESK', $params = [])
28
    {
29
        return new RequestedResources($this->client, $library, $circ_desk, $params);
30
    }
31
}
32