<?php

namespace NPS\Etc;

/**
 * Interface for any object to be able to post string messages to other objects
 * @author Lukas Korinek
 */
interface IMessage
{
    
    /**
     * Gets a message and moves internal pointer
     * @return string|null
     */
    public function popMessage();

    /**
     * Returns history of all messages for this object
     * @return array of strings
     */
    public function logMessages();
}

