| Total Complexity | 7 |
| Total Lines | 93 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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() |
||
| 94 | } |
||
| 95 | |||
| 96 | public function setId(string $id): self |
||
| 97 | { |
||
| 98 | $this->id = $id; |
||
| 99 | |||
| 103 |