Browse Source

Declare property

ADmad 10 years ago
parent
commit
ede9b91911
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/Collection/Iterator/TreePrinter.php

+ 7 - 0
src/Collection/Iterator/TreePrinter.php

@@ -49,6 +49,13 @@ class TreePrinter extends RecursiveIteratorIterator
     protected $_current;
 
     /**
+     * The string to use for prefixing the values according to their depth in the tree.
+     *
+     * @var string
+     */
+    protected $_spacer;
+
+    /**
      * Constructor
      *
      * @param \RecursiveIterator $items The iterator to flatten.