phonetworks/pho-framework

View on GitHub
src/Pho/Framework/ActorOut/WriteNotification.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/*
 * This file is part of the Pho package.
 *
 * (c) Emre Sokullu <emre@phonetworks.org>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Pho\Framework\ActorOut;

/**
 * The write notification.
 * 
 * @author Emre Sokullu <emre@phonetworks.org>
 */
class WriteNotification extends \Pho\Framework\AbstractNotification
{
    const MSG = "%s has written something.";

    /**
     * {@inheritdoc}
     */
    public function __toString(): string
    {
        return sprintf(self::MSG, (string) $this->edge()->tail()->id());
    }
}