Commit 915068c1 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Interface et trait pour MessageService.

parent a208fd72
Loading
Loading
Loading
Loading
+8
Changes for src/UnicaenApp/Message/MessageServiceAwareInterface.php: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php

namespace UnicaenApp\Message;

interface MessageServiceAwareInterface
{
    public function setMessageService(MessageService $service);
}
 No newline at end of file
+19
Changes for src/UnicaenApp/Message/MessageServiceAwareTrait.php: 19 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php

namespace UnicaenApp\Message;

trait MessageServiceAwareTrait
{
    /**
     * @var MessageService
     */
    protected $messageService;

    /**
     * @param MessageService $service
     */
    public function setMessageService(MessageService $service)
    {
        $this->messageService = $service;
    }
}
 No newline at end of file