PHP Trait Mpociot\Firebase\SyncsWithFirebase

Datei anzeigen Open project: mpociot/laravel-firebase-sync

Protected Properties

Property Type Description
$firebaseClient Firebase\FirebaseInterface | null

Public Methods

Method Description
bootSyncsWithFirebase ( ) Boot the trait and add the model events to synchronize with firebase
setFirebaseClient ( Firebase\FirebaseInterface | null $firebaseClient )

Protected Methods

Method Description
getFirebaseSyncData ( ) : array
saveToFirebase ( $mode )

Method Details

bootSyncsWithFirebase() public static method

Boot the trait and add the model events to synchronize with firebase
public static bootSyncsWithFirebase ( )

getFirebaseSyncData() protected method

protected getFirebaseSyncData ( ) : array
return array

saveToFirebase() protected method

protected saveToFirebase ( $mode )
$mode

setFirebaseClient() public method

public setFirebaseClient ( Firebase\FirebaseInterface | null $firebaseClient )
$firebaseClient Firebase\FirebaseInterface | null

Property Details

$firebaseClient protected_oe property

protected FirebaseInterface,Firebase|null $firebaseClient
return Firebase\FirebaseInterface | null