PHP Class Rubenwouters\CrmLauncher\Updates\CheckActivity

Exibir arquivo Open project: rubenwouters/crm-launcher

Protected Properties

Property Type Description
$config Rubenwouters\CrmLauncher\Models\Message
$message Rubenwouters\CrmLauncher\Models\Message

Public Methods

Method Description
__construct ( Message $message, Configuration $config )
isAboveMax ( ) : boolean Checks if number of todays messages are greater than max
sendNotifications ( ) : void Send mail to notify above average social media activity

Private Methods

Method Description
toggleSentNotification ( ) : void Remember that a notification is sent today

Method Details

__construct() public method

public __construct ( Message $message, Configuration $config )
$message Rubenwouters\CrmLauncher\Models\Message
$config Rubenwouters\CrmLauncher\Models\Configuration

isAboveMax() public method

Checks if number of todays messages are greater than max
public isAboveMax ( ) : boolean
return boolean [description]

sendNotifications() public method

Send mail to notify above average social media activity
public sendNotifications ( ) : void
return void

Property Details

$config protected_oe property

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

$message protected_oe property

protected Message,Rubenwouters\CrmLauncher\Models $message
return Rubenwouters\CrmLauncher\Models\Message