Otherwise phpstorm doesn't understand the paths correctly. He thinks that this is not a complete application, but a package. And when creating a class, the namespace indicates “app” with a small letter, but should be “App”.
22 lines
406 B
PHP
22 lines
406 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace App\Dto\Service\Admin\Role;
|
|
|
|
use App\Dto\Builder\Role;
|
|
use App\Dto\Service\Pages;
|
|
|
|
final readonly class Index extends Pages
|
|
{
|
|
public function __construct(
|
|
private Role $roleBuilderDto,
|
|
int $page
|
|
) {
|
|
parent::__construct($page);
|
|
}
|
|
|
|
public function getRoleBuilderDto(): Role
|
|
{
|
|
return $this->roleBuilderDto;
|
|
}
|
|
}
|