Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/data/DiffusionBrowseResultSet.php
| Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | final class DiffusionBrowseResultSet { | ||||
| public function toDictionary() { | public function toDictionary() { | ||||
| $paths = $this->getPathDicts(); | $paths = $this->getPathDicts(); | ||||
| return array( | return array( | ||||
| 'paths' => $paths, | 'paths' => $paths, | ||||
| 'isValidResults' => $this->isValidResults(), | 'isValidResults' => $this->isValidResults(), | ||||
| 'reasonForEmptyResultSet' => $this->getReasonForEmptyResultSet(), | 'reasonForEmptyResultSet' => $this->getReasonForEmptyResultSet(), | ||||
| 'existedAtCommit' => $this->getExistedAtCommit(), | 'existedAtCommit' => $this->getExistedAtCommit(), | ||||
| 'deletedAtCommit' => $this->getDeletedAtCommit()); | 'deletedAtCommit' => $this->getDeletedAtCommit(), | ||||
| ); | |||||
| } | } | ||||
| public function getPathDicts() { | public function getPathDicts() { | ||||
| $paths = $this->getPaths(); | $paths = $this->getPaths(); | ||||
| if ($paths) { | if ($paths) { | ||||
| return mpull($paths, 'toDictionary'); | return mpull($paths, 'toDictionary'); | ||||
| } | } | ||||
| return array(); | return array(); | ||||
| Show All 16 Lines | |||||