<?php
namespace SimpleSoftwareIO\SMS;

trait DoesNotReceive
{
    /**
     * Checks the server for messages and returns their results.
     *
     * @param array $options
     *
     * @return array
     */
    public function checkMessages(array $options = [])
    {
        throw new \RuntimeException('Receive methods are not support with the E-Mail driver.');
    }

    /**
     * Gets a single message by it's ID.
     *
     * @param string|int $messageId
     *
     * @throws \RuntimeException
     *
     */
    public function getMessage($messageId)
    {
        throw new \RuntimeException('Receive methods are not support with the E-Mail driver.');
    }

    /**
     * Receives an incoming message via REST call.
     *
     * @param mixed $raw
     *
     * @throws \RuntimeException
     */
    public function receive($raw)
    {
        throw new \RuntimeException('Receive methods are not support with the E-Mail driver.');
    }
}

Create DoesNotReceieve trait for drivers who do not support incoming messages
Create DoesNotReceieve trait for drivers who do not support incoming messages
