Organizations::update()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
namespace seregazhuk\Favro\Api\Endpoints;
4
5
6
class Organizations extends CrudEndpoint
7
{
8
    /**
9
     * @param string $id
10
     * @return array
11
     */
12
    public function getById($id)
13
    {
14
        return $this->withOrganization($id)->getById($id);
15
    }
16
17
    /**
18
     * @param string $itemId
19
     * @param array $attributes
20
     * @return mixed
21
     */
22
    public function update($itemId, array $attributes)
23
    {
24
        return $this->withOrganization($itemId)->update($itemId, $attributes);
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function endpoint()
31
    {
32
        return 'organizations';
33
    }
34
}
35