for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Src\UseCases\Domain\System;
use App\Src\UseCases\Domain\Ports\PageRepository;
class SetPageDryState
{
public $pageRepository;
public function __construct(PageRepository $pageRepository)
$this->pageRepository = $pageRepository;
}
public function execute(int $pageId)
$page = $this->pageRepository->get($pageId);
$page->setOnDryState();