Test Failed
Push — master ( 99cade...32f37c )
by Dan Michael O.
10:15
created

TaskLists::getLendingRequests()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
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
     * @param Client $client
15
     */
16
    public function __construct(Client $client)
17
    {
18
        $this->client = $client;
19
    }
20
21
    public function getLendingRequests(Library $library, $params = [])
22
    {
23
        return new LendingRequests($this->client, $library, $params);
24
    }
25
26
    public function getRequestedResources(Library $library, $circ_desk = 'DEFAULT_CIRC_DESK', $params = [])
27
    {
28
        return new RequestedResources($this->client, $library, $circ_desk, $params);
29
    }
30
}
31