Item.php 906 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Block\Widget\Button;
  7. /**
  8. * @api
  9. * @method string getButtonKey()
  10. * @method string getRegion()
  11. * @method string getName()
  12. * @method int getLevel()
  13. * @method int getSortOrder()
  14. * @method string getTitle()
  15. * @since 100.0.2
  16. */
  17. class Item extends \Magento\Framework\DataObject
  18. {
  19. /**
  20. * Object delete flag
  21. *
  22. * @var bool
  23. */
  24. protected $_isDeleted = false;
  25. /**
  26. * Set _isDeleted flag value (if $isDeleted parameter is defined) and return current flag value
  27. *
  28. * @param boolean $isDeleted
  29. * @return bool
  30. */
  31. public function isDeleted($isDeleted = null)
  32. {
  33. $result = $this->_isDeleted;
  34. if ($isDeleted !== null) {
  35. $this->_isDeleted = $isDeleted;
  36. }
  37. return $result;
  38. }
  39. }