MIB.php 794 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace FurukawaBundle\SNMP;
  3. /**
  4. * Parent class for all "MIB" extensions.
  5. *
  6. * @copyright Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland
  7. * @author Barry O'Donovan <barry@opensolutions.ie>
  8. */
  9. class MIB
  10. {
  11. /**
  12. * Instance for the SNMP object
  13. */
  14. private $_snmp = null;
  15. /**
  16. * Set the SNMP instance
  17. *
  18. * @param FurukawaBundle\SNMP\SNMP $snmp the SNMP instance
  19. * @return FurukawaBundle\SNMP\MIB An instance of this class for fluent interfaces
  20. */
  21. public function setSNMP( $snmp )
  22. {
  23. $this->_snmp = $snmp;
  24. }
  25. /**
  26. * Get the SNMP instance
  27. *
  28. * @return FurukawaBundle\SNMP\SNMP Instance of the SNMP object
  29. */
  30. public function getSNMP()
  31. {
  32. return $this->_snmp;
  33. }
  34. }