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”.
18 lines
297 B
PHP
18 lines
297 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace App\Dto\Service\Private\Profile;
|
|
|
|
use App\Dto\Service\Dto;
|
|
|
|
final readonly class Update extends Dto
|
|
{
|
|
public function __construct(
|
|
private string $name
|
|
) { }
|
|
|
|
public function getName(): string
|
|
{
|
|
return $this->name;
|
|
}
|
|
}
|