uuid) ? $one->uuid : null; $wallet = isset($one->wallet_uuid) ? (object)[ 'uuid' => $one->wallet_uuid, 'address' => $one->address, 'network' => $one->network, ] : null; $collection[] = (object)[ 'uuid' => $uuid, 'tier' => $one->tier, 'web3id' => $one->web3id, 'consent' => $one->consent, 'datetime' => $one->datetime, 'expiration' => isset($one->expiration) ? $one->expiration : null, 'wallet' => $wallet, ]; } return [ 'collection' => $collection, 'page' => $list_response['page'], 'page_size' => $list_response['page_size'], 'total_pages' => $list_response['total_pages'], 'total_elements' => $list_response['total_elements'], ]; } }