PropertyGroupFactory.php 904 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View\Asset;
  7. /**
  8. * Property group factory
  9. */
  10. class PropertyGroupFactory
  11. {
  12. /**
  13. * Object Manager instance
  14. *
  15. * @var \Magento\Framework\ObjectManagerInterface
  16. */
  17. protected $objectManager;
  18. /**
  19. * Constructor
  20. *
  21. * @param \Magento\Framework\ObjectManagerInterface $objectManager
  22. */
  23. public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager)
  24. {
  25. $this->objectManager = $objectManager;
  26. }
  27. /**
  28. * Create class instance with specified parameters
  29. *
  30. * @param array $data
  31. * @return Collection
  32. */
  33. public function create(array $data = [])
  34. {
  35. return $this->objectManager->create(\Magento\Framework\View\Asset\PropertyGroup::class, $data);
  36. }
  37. }