Completed
Push — master ( 401bbc...02c732 )
by Grant
05:46 queued 02:35
created

JobPosterApplication::getUser_id()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * To change this license header, choose License Headers in Project Properties.
5
 * To change this template file, choose Tools | Templates
6
 * and open the template in the editor.
7
 */
8
9
/**
10
 * Description of JobPosting
11
 *
12
 * @author GBowden
13
 */
14
class JobPosterApplication implements JsonSerializable {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
15
    
16
    private $job_poster_application_id;
17
    private $application_job_poster_id;
18
    private $user_id;
19
    private $job_poster_application_status_id;
20
    
21
    public function __construct($job_poster_application_id = null, $application_job_poster_id = null, $user_id = null, $job_poster_application_status_id = null) {
22
        $this->job_poster_application_id = $job_poster_application_id;
23
        $this->application_job_poster_id = $application_job_poster_id;
24
        $this->user_id = $user_id;
25
        $this->job_poster_application_status_id = $job_poster_application_status_id;
26
    }
27
28
    public function jsonSerialize() {
29
        $getter_names = get_class_methods(get_class($this));
30
        $gettable_attributes = array();
31
        foreach ($getter_names as $key => $value) {
32
            if (substr($value, 0, 3) === 'get') {
33
                $gettable_attributes[strtolower(substr($value, 3, strlen($value)))] = $this->$value();
34
            }
35
        }
36
        return $gettable_attributes;
37
    }
38
    
39
    public function getJob_poster_application_id() {
40
        return $this->job_poster_application_id;
41
    }
42
43
    public function getApplication_job_poster_id() {
44
        return $this->application_job_poster_id;
45
    }
46
47
    public function getUser_id() {
48
        return $this->user_id;
49
    }
50
51
    public function getJob_poster_application_status_id() {
52
        return $this->job_poster_application_status_id;
53
    }
54
55
    public function setJob_poster_application_id($job_poster_application_id) {
56
        $this->job_poster_application_id = $job_poster_application_id;
57
        return $this;
58
    }
59
60
    public function setApplication_job_poster_id($application_job_poster_id) {
61
        $this->application_job_poster_id = $application_job_poster_id;
62
        return $this;
63
    }
64
65
    public function setUser_id($user_id) {
66
        $this->user_id = $user_id;
67
        return $this;
68
    }
69
70
    public function setJob_poster_application_status_id($job_poster_application_status_id) {
71
        $this->job_poster_application_status_id = $job_poster_application_status_id;
72
        return $this;
73
    }
74
75
}
76