AbstractSObject::getCreatedDate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace Xsolve\SalesforceClient\Model;
4
5
use JMS\Serializer\Annotation\Type;
6
use Xsolve\SalesforceClient\Enum\AbstractSObjectType;
7
8
abstract class AbstractSObject
9
{
10
    /**
11
     * @var string
12
     * @Type("string")
13
     */
14
    protected $id;
15
16
    /**
17
     * @var string
18
     * @Type("string")
19
     */
20
    protected $createdById;
21
22
    /**
23
     * @var \DateTime
24
     * @Type("DateTime<'Y-m-d\TH:i:s.\0\0\0O'>")
25
     */
26
    protected $createdDate;
27
28
    /**
29
     * @var string
30
     * @Type("string")
31
     */
32
    protected $lastModifiedById;
33
34
    /**
35
     * @var \DateTime
36
     * @Type("DateTime<'Y-m-d\TH:i:s.\0\0\0O'>")
37
     */
38
    protected $lastModifiedDate;
39
40
    /**
41
     * @var \DateTime
42
     * @Type("DateTime<'Y-m-d\TH:i:s.\0\0\0O'>")
43
     */
44
    protected $systemModstamp;
45
46
    abstract public static function getSObjectName(): AbstractSObjectType;
47
48
    /**
49
     * @return string
50
     */
51
    public function getId()
52
    {
53
        return $this->id;
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getCreatedById()
60
    {
61
        return $this->createdById;
62
    }
63
64
    /**
65
     * @return \DateTime
66
     */
67
    public function getCreatedDate()
68
    {
69
        return $this->createdDate;
70
    }
71
72
    /**
73
     * @return string
74
     */
75
    public function getLastModifiedById()
76
    {
77
        return $this->lastModifiedById;
78
    }
79
80
    /**
81
     * @return \DateTime
82
     */
83
    public function getLastModifiedDate()
84
    {
85
        return $this->lastModifiedDate;
86
    }
87
88
    /**
89
     * @return \DateTime
90
     */
91
    public function getSystemModstamp()
92
    {
93
        return $this->systemModstamp;
94
    }
95
96
    public function setId(string $id): self
97
    {
98
        $this->id = $id;
99
100
        return $this;
101
    }
102
}
103