Completed
Pull Request — master (#16)
by
unknown
07:58
created

CustomFields::all()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Trello\Api\Board;
4
5
use Trello\Api\AbstractApi;
6
7
/**
8
 * Trello Board custom fields API
9
 * @link https://developers.trello.com/docs/getting-started-custom-fields
10
 *
11
 */
12
class CustomFields extends AbstractApi
13
{
14
    /**
15
     * Base path of board custom fields api
16
     * @var string
17
     */
18
    protected $path = 'boards/#id#/customFields';
19
20
    /**
21
     * Get custom fields related to a given board
22
     * @link https://developers.trello.com/docs/getting-started-custom-fields#section-get-custom-fields-on-a-board
23
     *
24
     * @param string $id     the board's
25
     * @param array  $params optional parameters
26
     *
27
     * @return array
28
     */
29
    public function all($id, array $params = array())
30
    {
31
        return $this->get($this->getPath($id), $params);
32
    }
33
}
34