Organizations   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 29
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getById() 0 4 1
A update() 0 4 1
A endpoint() 0 4 1
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