ClassOfService.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. namespace ThurData\Servers\KerioEmail\App\Libs\Kerio\Components\Api\Soap\Models ;
  3. use ThurData\Servers\KerioEmail\App\Libs\Kerio\Components\Api\Soap\Interfaces\AbstractModel;
  4. /**
  5. *
  6. * Created by PhpStorm.
  7. * User: ThurData
  8. * Date: 05.09.19
  9. * Time: 13:34
  10. * Class ClassOfService
  11. */
  12. class ClassOfService extends AbstractModel
  13. {
  14. protected $name;
  15. protected $id;
  16. /**
  17. * @return mixed
  18. */
  19. public function getName()
  20. {
  21. return $this->name;
  22. }
  23. /**
  24. * @param mixed $name
  25. */
  26. public function setName($name)
  27. {
  28. $this->name = $name;
  29. }
  30. /**
  31. * @return mixed
  32. */
  33. public function getId()
  34. {
  35. return $this->id;
  36. }
  37. /**
  38. * @param mixed $id
  39. */
  40. public function setId($id)
  41. {
  42. $this->id = $id;
  43. }
  44. /**
  45. * @return float|int
  46. */
  47. public function getMbMailQuote()
  48. {
  49. $quete = $this->getDataResourceA('kerioMailQuota');
  50. return $quete / 1024 /1024;
  51. }
  52. /**
  53. * @return float|int
  54. */
  55. public function getMailQuote()
  56. {
  57. $quete = $this->getDataResourceA('kerioMailQuota');
  58. return $quete / 1024 /1024;
  59. }
  60. }