src/ShortMessageCollection.php
public function push(ShortMessage $shortMessage)
    {
        if ($shortMessage->hasManyReceivers()) {
            throw new \LogicException(
                "Expected one receiver per short message, got many."
            );
        }

        $this->items[] = $shortMessage;

        return $this;
    }
public function push(ShortMessage $shortMessage)
    {
        if ($shortMessage->hasManyReceivers()) {
            throw new \LogicException(
                "Expected one receiver per short message, got many."
            );
        }

        $this->items[] = $shortMessage;

        return $this;
    }
public function push ( ShortMessage $ shortMessage ) { if ( $ shortMessage -> hasManyReceivers ( ) ) { throw new \ LogicException ( "Expected one receiver per short message, got many." ) ; } $ this -> items [ ] = $ shortMessage ; return $ this ; }
Push a new short message to the given collection.

@param ShortMessage $shortMessage

@return self
Push a new short message to the given collection .