@@ 40-46 (lines=7) @@ | ||
37 | * |
|
38 | * @return array |
|
39 | */ |
|
40 | public function create($id, array $params) |
|
41 | { |
|
42 | $atLeastOneOf = array('url', 'file'); |
|
43 | $this->validateAtLeastOneOf($atLeastOneOf, $params); |
|
44 | ||
45 | return $this->post($this->getPath($id), $params); |
|
46 | } |
|
47 | ||
48 | /** |
|
49 | * Get a given attachment on a given card |
@@ 47-53 (lines=7) @@ | ||
44 | * @throws MissingArgumentException If there is not at least of the |
|
45 | * following parameters: 'value', 'name', 'idChecklistSource' |
|
46 | */ |
|
47 | public function create($id, array $params) |
|
48 | { |
|
49 | $atLeastOneOf = array('value', 'name', 'idChecklistSource'); |
|
50 | $this->validateAtLeastOneOf($atLeastOneOf, $params); |
|
51 | ||
52 | return $this->post($this->getPath($id), $params); |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * Remove a given checklist from a given card |