Response   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 32
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setRawResponse() 0 5 1
A setProvider() 0 5 1
A setPostId() 0 5 1
A setPostUrl() 0 5 1
1
<?php
2
3
namespace Borfast\Socializr;
4
5
class Response
6
{
7
    public $raw_response;
8
    public $provider;
9
    public $post_id;
10
    public $post_url;
11
12
13
    public function setRawResponse($raw_response)
14
    {
15
        $this->raw_response = $raw_response;
16
        return $this;
17
    }
18
19
    public function setProvider($provider)
20
    {
21
        $this->provider = $provider;
22
        return $this;
23
    }
24
25
    public function setPostId($post_id)
26
    {
27
        $this->post_id = $post_id;
28
        return $this;
29
    }
30
31
    public function setPostUrl($post_url)
32
    {
33
        $this->post_url = $post_url;
34
        return $this;
35
    }
36
}
37