romeritoCL /
cachet-api-client
| 1 | <?php |
||
| 2 | |||
| 3 | namespace DevoraliveCachet\Entity; |
||
| 4 | |||
| 5 | use DateTime; |
||
| 6 | use JMS\Serializer\Annotation as JMS; |
||
| 7 | |||
| 8 | /** |
||
| 9 | * Class Entity |
||
| 10 | * @package DevoraliveCachet\Entity |
||
| 11 | */ |
||
| 12 | abstract class Entity implements \JsonSerializable |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | * @JMS\Type("int") |
||
| 17 | */ |
||
| 18 | protected $id; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var DateTime |
||
| 22 | * @JMS\Type("DateTime<'Y-m-d H:i:s'>") |
||
| 23 | * @JMS\SerializedName("created_at") |
||
| 24 | */ |
||
| 25 | protected $createdAt; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var DateTime |
||
| 29 | * @JMS\Type("DateTime<'Y-m-d H:i:s'>") |
||
| 30 | * @JMS\SerializedName("updated_at") |
||
| 31 | */ |
||
| 32 | protected $updatedAt; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var DateTime |
||
| 36 | * @JMS\Type("DateTime<'Y-m-d H:i:s'>") |
||
| 37 | * @JMS\SerializedName("deleted_at") |
||
| 38 | */ |
||
| 39 | protected $deletedAt; |
||
| 40 | |||
| 41 | |||
| 42 | /** |
||
| 43 | * Get the value of Id |
||
| 44 | * |
||
| 45 | * @return int |
||
| 46 | */ |
||
| 47 | public function getId() |
||
| 48 | { |
||
| 49 | return $this->id; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Set the value of Id |
||
| 54 | * |
||
| 55 | * @param int id |
||
|
0 ignored issues
–
show
|
|||
| 56 | * |
||
| 57 | * @return self |
||
| 58 | */ |
||
| 59 | public function setId($id) |
||
| 60 | { |
||
| 61 | $this->id = $id; |
||
| 62 | |||
| 63 | return $this; |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Get the value of Created At |
||
| 68 | * |
||
| 69 | * @return DateTime |
||
| 70 | */ |
||
| 71 | public function getCreatedAt() |
||
| 72 | { |
||
| 73 | return $this->createdAt; |
||
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Set the value of Created At |
||
| 78 | * |
||
| 79 | * @param DateTime|null $createdAt |
||
| 80 | * |
||
| 81 | * @return self |
||
| 82 | */ |
||
| 83 | public function setCreatedAt(DateTime $createdAt = null) |
||
| 84 | { |
||
| 85 | $this->createdAt = $createdAt; |
||
| 86 | |||
| 87 | return $this; |
||
| 88 | } |
||
| 89 | |||
| 90 | /** |
||
| 91 | * Get the value of Updated At |
||
| 92 | * |
||
| 93 | * @return DateTime |
||
| 94 | */ |
||
| 95 | public function getUpdatedAt() |
||
| 96 | { |
||
| 97 | return $this->updatedAt; |
||
| 98 | } |
||
| 99 | |||
| 100 | /** |
||
| 101 | * Set the value of Updated At |
||
| 102 | * |
||
| 103 | * @param DateTime|null $updatedAt |
||
| 104 | * |
||
| 105 | * @return self |
||
| 106 | */ |
||
| 107 | public function setUpdatedAt(DateTime $updatedAt = null) |
||
| 108 | { |
||
| 109 | $this->updatedAt = $updatedAt; |
||
| 110 | |||
| 111 | return $this; |
||
| 112 | } |
||
| 113 | |||
| 114 | /** |
||
| 115 | * Get the value of Deleted At |
||
| 116 | * |
||
| 117 | * @return DateTime |
||
| 118 | */ |
||
| 119 | public function getDeletedAt() |
||
| 120 | { |
||
| 121 | return $this->deletedAt; |
||
| 122 | } |
||
| 123 | |||
| 124 | /** |
||
| 125 | * Set the value of Deleted At |
||
| 126 | * |
||
| 127 | * @param DateTime|null $deletedAt |
||
| 128 | * |
||
| 129 | * @return self |
||
| 130 | */ |
||
| 131 | public function setDeletedAt(DateTime $deletedAt = null) |
||
| 132 | { |
||
| 133 | $this->deletedAt = $deletedAt; |
||
| 134 | |||
| 135 | return $this; |
||
| 136 | } |
||
| 137 | |||
| 138 | /** |
||
| 139 | * @return array|mixed |
||
| 140 | */ |
||
| 141 | public function jsonSerialize() |
||
| 142 | { |
||
| 143 | return get_object_vars($this); |
||
| 144 | } |
||
| 145 | } |
||
| 146 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths