FileInfo.php 965 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Analytics\Model;
  7. /**
  8. * Contain information about encrypted file.
  9. */
  10. class FileInfo
  11. {
  12. /**
  13. * Initialization vector that was used for encryption.
  14. *
  15. * @var string
  16. */
  17. private $initializationVector;
  18. /**
  19. * Relative path to an encrypted file.
  20. *
  21. * @var string
  22. */
  23. private $path;
  24. /**
  25. * @param string $path
  26. * @param string $initializationVector
  27. */
  28. public function __construct($path = '', $initializationVector = '')
  29. {
  30. $this->path = $path;
  31. $this->initializationVector = $initializationVector;
  32. }
  33. /**
  34. * @return string
  35. */
  36. public function getPath()
  37. {
  38. return $this->path;
  39. }
  40. /**
  41. * @return string
  42. */
  43. public function getInitializationVector()
  44. {
  45. return $this->initializationVector;
  46. }
  47. }