Advertisement
Guest User

Untitled

a guest
Mar 24th, 2022
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 5.0.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 14.12.2021
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. namespace Api\v1\License\DTO;
  15.  
  16. final class LicenseDTO implements \Illuminate\Contracts\Support\Arrayable
  17. {
  18. use App\DTO\DTOTrait;
  19.  
  20. private string $key = null;
  21. private bool $isActive;
  22. private string $keyType = null;
  23. private string $product = null;
  24. private int $expirationDate;
  25. private int $updateDate;
  26. private string $updateTicket = null;
  27. private int $cpuCores;
  28. private int $relevantCpuCores;
  29.  
  30. public function __construct(string $key, string $keyType, string $product, int $expirationDate, int $updateDate, string $updateTicket, int $cpuCores, bool $isActive = false, int $relevantCpuCores = 0)
  31. {
  32. $this->key = $key;
  33. $this->isActive = $isActive;
  34. $this->keyType = $keyType;
  35. $this->product = $product;
  36. $this->expirationDate = $expirationDate;
  37. $this->updateDate = $updateDate;
  38. $this->updateTicket = $updateTicket;
  39. $this->cpuCores = $cpuCores;
  40. $this->relevantCpuCores = $relevantCpuCores;
  41. }
  42.  
  43. public function getKey(): string
  44. {
  45. return $this->key;
  46. }
  47.  
  48. public function isActive(): bool
  49. {
  50. return $this->isActive;
  51. }
  52.  
  53. public function getKeyType(): string
  54. {
  55. return $this->keyType;
  56. }
  57.  
  58. public function getProduct(): string
  59. {
  60. return $this->product;
  61. }
  62.  
  63. public function getExpirationDate(): Carbon\CarbonInterface
  64. {
  65. return \Carbon\Carbon::parse($this->expirationDate);
  66. ..........................................................
  67. ................................
  68. .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement