控制台应用,yzncms本身基于tp5.1框架,里面的队列用不了,bug,坑
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PropertyPathInterface.php 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\PropertyAccess;
  11. /**
  12. * A sequence of property names or array indices.
  13. *
  14. * @author Bernhard Schussek <bschussek@gmail.com>
  15. *
  16. * @extends \Traversable<int, string>
  17. */
  18. interface PropertyPathInterface extends \Traversable
  19. {
  20. /**
  21. * Returns the string representation of the property path.
  22. *
  23. * @return string
  24. */
  25. public function __toString();
  26. /**
  27. * Returns the length of the property path, i.e. the number of elements.
  28. *
  29. * @return int
  30. */
  31. public function getLength();
  32. /**
  33. * Returns the parent property path.
  34. *
  35. * The parent property path is the one that contains the same items as
  36. * this one except for the last one.
  37. *
  38. * If this property path only contains one item, null is returned.
  39. *
  40. * @return self|null
  41. */
  42. public function getParent();
  43. /**
  44. * Returns the elements of the property path as array.
  45. *
  46. * @return list<string>
  47. */
  48. public function getElements();
  49. /**
  50. * Returns the element at the given index in the property path.
  51. *
  52. * @param int $index The index key
  53. *
  54. * @return string
  55. *
  56. * @throws Exception\OutOfBoundsException If the offset is invalid
  57. */
  58. public function getElement(int $index);
  59. /**
  60. * Returns whether the element at the given index is a property.
  61. *
  62. * @param int $index The index in the property path
  63. *
  64. * @return bool
  65. *
  66. * @throws Exception\OutOfBoundsException If the offset is invalid
  67. */
  68. public function isProperty(int $index);
  69. /**
  70. * Returns whether the element at the given index is an array index.
  71. *
  72. * @param int $index The index in the property path
  73. *
  74. * @return bool
  75. *
  76. * @throws Exception\OutOfBoundsException If the offset is invalid
  77. */
  78. public function isIndex(int $index);
  79. }