| @@ 103-116 (lines=14) @@ | ||
| 100 | /** | |
| 101 |      * {@inheritdoc} | |
| 102 | */ | |
| 103 | public function listChildren() | |
| 104 |     { | |
| 105 | $children = new ArrayResourceCollection(); | |
| 106 | ||
| 107 |         if (!$this->getRepository()) { | |
| 108 | return $children; | |
| 109 | } | |
| 110 | ||
| 111 |         foreach ($this->getRepository()->listChildren($this->getTargetPath()) as $child) { | |
| 112 | $children[$child->getName()] = $child; | |
| 113 | } | |
| 114 | ||
| 115 | return $children; | |
| 116 | } | |
| 117 | ||
| 118 | protected function preSerialize(array &$data) | |
| 119 |     { | |
| @@ 111-124 (lines=14) @@ | ||
| 108 | /** | |
| 109 |      * {@inheritdoc} | |
| 110 | */ | |
| 111 | public function listChildren() | |
| 112 |     { | |
| 113 | $children = new ArrayResourceCollection(); | |
| 114 | ||
| 115 |         if (!$this->getRepository()) { | |
| 116 | return $children; | |
| 117 | } | |
| 118 | ||
| 119 |         foreach ($this->getRepository()->listChildren($this->getRepositoryPath()) as $child) { | |
| 120 | $children[$child->getName()] = $child; | |
| 121 | } | |
| 122 | ||
| 123 | return $children; | |
| 124 | } | |
| 125 | ||
| 126 | /** | |
| 127 |      * {@inheritdoc} | |