for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Shoot\Shoot\Tests\Integration\Embedding\Presenters;
use Psr\Http\Message\ServerRequestInterface;
use Shoot\Shoot\PresentationModel;
use Shoot\Shoot\PresenterInterface;
final class LayoutPresenter implements PresenterInterface
{
/**
* Receives the current HTTP request context and the presentation model assigned to the view. If necessary,
* populates the presentation model with data and returns it.
*
* @param ServerRequestInterface $request
* @param PresentationModel $presentationModel
* @return PresentationModel
*/
public function present(ServerRequestInterface $request, PresentationModel $presentationModel): PresentationModel
return $presentationModel->withVariables([
'links' => [
'Home' => '/',
],
]);
}