for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the zibios/sharep.
*
* (c) Zbigniew Ślązak
*/
namespace App\Slack\PredefinedMessage;
use App\Slack\MessageBuilder\Layout;
use App\Slack\MessageBuilder\MessageFactory;
class ErrorMessage
{
/** @var MessageFactory */
private $messageFactory;
public function __construct(MessageFactory $messageFactory)
$this->messageFactory = $messageFactory;
}
public function generate(): Layout
$mf = $this->messageFactory;
return $mf->layout(
$mf->blockSection(
$mf->elementPlainText('Error: Something goes completely wrong!')
)
);