| 1 | <?php |
||
| 11 | class OutlineTree { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var [] |
||
| 15 | */ |
||
| 16 | public $tree; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var [] |
||
| 20 | */ |
||
| 21 | public $items; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var integer |
||
| 25 | */ |
||
| 26 | public $itemCount = 0; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var integer |
||
| 30 | */ |
||
| 31 | public $leafCount = 0; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @since 3.1 |
||
| 35 | * |
||
| 36 | * @param array $items |
||
| 37 | */ |
||
| 38 | 4 | public function __construct( $items = [] ) { |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @since 3.1 |
||
| 45 | * |
||
| 46 | * @param $item |
||
| 47 | */ |
||
| 48 | 2 | public function addItem( $item ) { |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @since 3.1 |
||
| 55 | * |
||
| 56 | * @param $vals |
||
| 57 | * @param $item |
||
| 58 | */ |
||
| 59 | 2 | public function categorizeItem( $vals, $item ) { |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @since 3.1 |
||
| 73 | * |
||
| 74 | * @param $property |
||
| 75 | */ |
||
| 76 | 2 | public function addProperty( $property ) { |
|
| 89 | |||
| 90 | } |
||
| 91 |