1
0

user_location_reject.php 609 B

12345678910111213141516171819202122232425
  1. <?php
  2. use Carbon\CarbonImmutable;
  3. /**
  4. * Class UserLocationReject
  5. *
  6. * @property int $user_id
  7. * @property int $location_id
  8. * @property int $reject_count
  9. * @property string $dts_last_rejected
  10. */
  11. class UserLocationReject extends Model {
  12. protected static $table = "user_location_reject";
  13. protected static $id_field = ["user_id", "location_id"];
  14. protected static $fillable_fields = ["user_id", "location_id", "reject_count", "dts_last_rejected"];
  15. // Object methods
  16. public function getDateTimeLastRejected(): CarbonImmutable {
  17. return CarbonImmutable::parse($this->dts_last_rejected, "UTC");
  18. }
  19. }