Moved from "app/src" to "app/application".
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”.
This commit is contained in:
18
app/application/app/Dto/Service/Admin/Project/Languages.php
Normal file
18
app/application/app/Dto/Service/Admin/Project/Languages.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace App\Dto\Service\Admin\Project;
|
||||
|
||||
final class Languages
|
||||
{
|
||||
private $languages = [];
|
||||
|
||||
public function addLanguage(Language $language): void
|
||||
{
|
||||
$this->languages[] = $language;
|
||||
}
|
||||
|
||||
public function getLanguages(): array
|
||||
{
|
||||
return $this->languages;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user