ApplicationInstall

A document representing one configured install of one Application. Persisted in MongoDB; managed by ApplicationInstallRepository and ApplicationManager.

use Hanaboso\PipesPhpSdk\Application\Document\ApplicationInstall;

Methods provided #

MethodReturnsPurpose
getKey()stringApplication name (matches getName() of the Application class).
getUser()stringUser identifier this install belongs to.
getSettings()arrayForm values, organized by form key. Decrypted on read.
addSettings(array $values)selfMerge encrypted settings (credentials, tokens).
getNonEncryptedSettings()arrayForm values not subject to encryption.
addNonEncryptedSettings(array $values)selfMerge non-encrypted settings.
getCreated() / getUpdated()DateTimeImmutableLifecycle timestamps.

Persistence #

$install = $this->getApplicationInstallFromProcess($dto);
$install->addNonEncryptedSettings(['lastSyncAt' => $now->format(DATE_ATOM)]);
$this->applicationInstallRepository->update($install);

See also #

© 2025 Orchesty Solutions. All rights reserved.