| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 61 | public function getChildren() |
||
| 62 | { |
||
| 63 | $items = []; |
||
| 64 | foreach ($this->getChildrenNames() as $itemName) { |
||
| 65 | $itemPath = $this->getPath() . static::DS . $itemName; |
||
| 66 | if (is_dir(BASE_PATH . static::DS . $itemPath)) { |
||
| 67 | $items[] = new Directory($itemPath); |
||
| 68 | } else { |
||
| 69 | $items[] = new File($itemPath); |
||
| 70 | } |
||
| 71 | } |
||
| 72 | |||
| 73 | return $items; |
||
| 74 | } |
||
| 76 |