src/Models/Communication.php
public function shouldSendCommunication(RhubarbDateTime $currentDateTime)
    {
        if ($this->Status != self::STATUS_SCHEDULED) {
            return false;
        }

        if ($this->DateToSend && $this->DateToSend->isValidDateTime()) {
            if ($currentDateTime < $this->DateToSend) {
                return false;
            }
        }

        return true;
    }
public function shouldSendCommunication(RhubarbDateTime $currentDateTime)
    {
        if ($this->Status != self::STATUS_SCHEDULED) {
            return false;
        }

        if ($this->DateToSend && $this->DateToSend->isValidDateTime()) {
            if ($currentDateTime < $this->DateToSend) {
                return false;
            }
        }

        return true;
    }
public function shouldSendCommunication ( RhubarbDateTime $ currentDateTime ) { if ( $ this -> Status != self :: STATUS_SCHEDULED ) { return false ; } if ( $ this -> DateToSend && $ this -> DateToSend -> isValidDateTime ( ) ) { if ( $ currentDateTime < $ this -> DateToSend ) { return false ; } } return true ; }
True if the communication can now be sent.

@param RhubarbDateTime $currentDateTime
@return bool
True if the communication can now be sent .