ErrorHandler.php 450 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace ModulesGarden\Servers\KerioEmail\App\Libs\Kerio\Components\Api\Soap\Traits;
  3. trait ErrorHandler
  4. {
  5. /**
  6. * @var
  7. */
  8. protected $error;
  9. /**
  10. * @param null $error
  11. * @return $this
  12. */
  13. public function setError($error = null)
  14. {
  15. $this->error = $error;
  16. return $this;
  17. }
  18. /**
  19. * @return mixed
  20. */
  21. public function getError()
  22. {
  23. return $this->error;
  24. }
  25. }