mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-18 00:49:31 +00:00
Use typed properties
This commit is contained in:
parent
548ec2ea50
commit
51e05a8669
216 changed files with 603 additions and 698 deletions
|
|
@ -28,7 +28,7 @@ use App\Services\ElementTypeNameGenerator;
|
|||
|
||||
final class AbstractDBElementProvider implements PlaceholderProviderInterface
|
||||
{
|
||||
private $elementTypeNameGenerator;
|
||||
private ElementTypeNameGenerator $elementTypeNameGenerator;
|
||||
|
||||
public function __construct(ElementTypeNameGenerator $elementTypeNameGenerator)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@ use Symfony\Component\Security\Core\Security;
|
|||
*/
|
||||
final class GlobalProviders implements PlaceholderProviderInterface
|
||||
{
|
||||
private $partdb_title;
|
||||
private $security;
|
||||
private string $partdb_title;
|
||||
private Security $security;
|
||||
|
||||
public function __construct(string $partdb_title, Security $security)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@ use Locale;
|
|||
|
||||
final class PartLotProvider implements PlaceholderProviderInterface
|
||||
{
|
||||
private $labelTextReplacer;
|
||||
private $amountFormatter;
|
||||
private LabelTextReplacer $labelTextReplacer;
|
||||
private AmountFormatter $amountFormatter;
|
||||
|
||||
public function __construct(LabelTextReplacer $labelTextReplacer, AmountFormatter $amountFormatter)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
|||
|
||||
final class PartProvider implements PlaceholderProviderInterface
|
||||
{
|
||||
private $siFormatter;
|
||||
private $translator;
|
||||
private SIFormatter $siFormatter;
|
||||
private TranslatorInterface $translator;
|
||||
|
||||
public function __construct(SIFormatter $SIFormatter, TranslatorInterface $translator)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue