mapdev\FacebookMessenger\Exceptions\CouldNotCreateMessage::noRecipientDefined PHP Method

noRecipientDefined() public static method

public static noRecipientDefined ( )
    public static function noRecipientDefined()
    {
        return new static('You must define a recipient PSID for the message to be sent to');
    }

Usage Example

コード例 #1
0
 public function checkRecipient()
 {
     if (!isset($this->recipient_id)) {
         throw CouldNotCreateMessage::noRecipientDefined();
     }
 }