for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AbterPhp\Admin\Http\Controllers\Admin;
use AbterPhp\Framework\I18n\ITranslator; // @phan-suppress-current-line
trait MessageTrait
{
/**
* @param string $messageType
*
* @return string
*/
protected function getMessage(string $messageType)
/** @var ITranslator $translator */
$translator = $this->translator;
$entityName = $translator->translate(static::ENTITY_TITLE_SINGULAR);
AbterPhp\Admin\Http\Cont...::ENTITY_TITLE_SINGULAR
return $translator->translate($messageType, $entityName);
}