| 12345678910111213141516171819202122232425 |
- <?php
- use Carbon\CarbonImmutable;
- /**
- * Class UserLocationReject
- *
- * @property int $user_id
- * @property int $location_id
- * @property int $reject_count
- * @property string $dts_last_rejected
- */
- class UserLocationReject extends Model {
- protected static $table = "user_location_reject";
- protected static $id_field = ["user_id", "location_id"];
- protected static $fillable_fields = ["user_id", "location_id", "reject_count", "dts_last_rejected"];
- // Object methods
- public function getDateTimeLastRejected(): CarbonImmutable {
- return CarbonImmutable::parse($this->dts_last_rejected, "UTC");
- }
- }
|