StringUtils.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * String translation model
  8. *
  9. * @method int getStoreId()
  10. * @method \Magento\Translation\Model\StringUtils setStoreId(int $value)
  11. * @method string getTranslate()
  12. * @method \Magento\Translation\Model\StringUtils setTranslate(string $value)
  13. * @method string getLocale()
  14. * @method \Magento\Translation\Model\StringUtils setLocale(string $value)
  15. */
  16. namespace Magento\Translation\Model;
  17. class StringUtils extends \Magento\Framework\Model\AbstractModel
  18. {
  19. /**
  20. * @return void
  21. */
  22. protected function _construct()
  23. {
  24. $this->_init(\Magento\Translation\Model\ResourceModel\StringUtils::class);
  25. }
  26. /**
  27. * @param string $string
  28. * @return $this
  29. */
  30. public function setString($string)
  31. {
  32. $this->setData('string', $string);
  33. return $this;
  34. }
  35. /**
  36. * Retrieve string
  37. *
  38. * @return string
  39. */
  40. public function getString()
  41. {
  42. return $this->getData('string');
  43. }
  44. }