Actions::all()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Trello\Api\Member;
4
5
use Trello\Api\AbstractApi;
6
7
/**
8
 * Trello Member Actions API
9
 * @link https://trello.com/docs/api/member
10
 *
11
 * Fully implemented.
12
 */
13
class Actions extends AbstractApi
14
{
15
    protected $path = 'members/#id#/actions';
16
17
    /**
18
     * Get actions related to a given member
19
     * @link https://trello.com/docs/api/member/#get-1-members-idmember-or-username-actions
20
     *
21
     * @param string $id     the card's id or short link
22
     * @param array  $params optional parameters
23
     *
24
     * @return array
25
     */
26 1
    public function all($id, array $params = array())
27
    {
28 1
        return $this->get($this->getPath($id), $params);
29
    }
30
}
31