AbstractConnection.php 947 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace ModulesGarden\Servers\ZimbraEmail\App\Libs\Zimbra\Components\Api\Soap\Interfaces;
  3. use ModulesGarden\Servers\ZimbraEmail\App\Libs\Zimbra\Components\Api\Soap\Connection;
  4. /**
  5. *
  6. * Created by PhpStorm.
  7. * User: Tomasz Bielecki ( tomasz.bi@modulesgarden.com )
  8. * Date: 09.09.19
  9. * Time: 09:47
  10. * Class AbstractConnection
  11. */
  12. class AbstractConnection
  13. {
  14. /**
  15. * @var Connection
  16. */
  17. protected $connection;
  18. /**
  19. * AbstractAction constructor.
  20. * @param Connection|null $connection
  21. */
  22. public function __construct(Connection $connection= null)
  23. {
  24. $this->setConnection($connection);
  25. }
  26. /**
  27. * @param Connection|null $connection
  28. */
  29. public function setConnection(Connection $connection= null)
  30. {
  31. $this->connection = $connection;
  32. }
  33. /**
  34. * @return Connection
  35. */
  36. public function getConnection()
  37. {
  38. return $this->connection;
  39. }
  40. }