PHP Class Rubenwouters\CrmLauncher\Updates\UpdateStatistics

Show file Open project: rubenwouters/crm-launcher

Protected Properties

Property Type Description
$config Rubenwouters\CrmLauncher\Models\Configuration
$contact Rubenwouters\CrmLauncher\Models\Contact
$facebookContent Rubenwouters\CrmLauncher\ApiCalls\FetchFacebookContent
$log Rubenwouters\CrmLauncher\Models\Contact
$publishment Rubenwouters\CrmLauncher\Models\Publishment
$twitterContent Rubenwouters\CrmLauncher\ApiCalls\FetchTwitterContent

Public Methods

Method Description
__construct ( Log $log, Configuration $config, Contact $contact, Publishment $publishment, FetchTwitterContent $twitterContent, FetchFacebookContent $facebookContent )
updateFacebookDashboardStats ( ) : void Update config file with likes
updateFbStats ( ) : void Update stats in DB
updateTwitterDashboardStats ( ) : void Update config file with followers
updateTwitterStats ( ) : void Update stats in DB (like count & retweet count)

Method Details

__construct() public method

public __construct ( Log $log, Configuration $config, Contact $contact, Publishment $publishment, FetchTwitterContent $twitterContent, FetchFacebookContent $facebookContent )
$log Rubenwouters\CrmLauncher\Models\Log
$config Rubenwouters\CrmLauncher\Models\Configuration
$contact Rubenwouters\CrmLauncher\Models\Contact
$publishment Rubenwouters\CrmLauncher\Models\Publishment
$twitterContent Rubenwouters\CrmLauncher\ApiCalls\FetchTwitterContent
$facebookContent Rubenwouters\CrmLauncher\ApiCalls\FetchFacebookContent

updateFacebookDashboardStats() public method

Update config file with likes
public updateFacebookDashboardStats ( ) : void
return void

updateFbStats() public method

Update stats in DB
public updateFbStats ( ) : void
return void

updateTwitterDashboardStats() public method

Update config file with followers
public updateTwitterDashboardStats ( ) : void
return void

updateTwitterStats() public method

Update stats in DB (like count & retweet count)
public updateTwitterStats ( ) : void
return void

Property Details

$config protected property

protected Configuration,Rubenwouters\CrmLauncher\Models $config
return Rubenwouters\CrmLauncher\Models\Configuration

$contact protected property

protected Contact,Rubenwouters\CrmLauncher\Models $contact
return Rubenwouters\CrmLauncher\Models\Contact

$facebookContent protected property

protected FetchFacebookContent,Rubenwouters\CrmLauncher\ApiCalls $facebookContent
return Rubenwouters\CrmLauncher\ApiCalls\FetchFacebookContent

$log protected property

protected Contact,Rubenwouters\CrmLauncher\Models $log
return Rubenwouters\CrmLauncher\Models\Contact

$publishment protected property

protected Publishment,Rubenwouters\CrmLauncher\Models $publishment
return Rubenwouters\CrmLauncher\Models\Publishment

$twitterContent protected property

protected FetchTwitterContent,Rubenwouters\CrmLauncher\ApiCalls $twitterContent
return Rubenwouters\CrmLauncher\ApiCalls\FetchTwitterContent