mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-21 03:14:52 +02:00
Use typed properties
This commit is contained in:
parent
548ec2ea50
commit
51e05a8669
216 changed files with 603 additions and 698 deletions
|
@ -53,8 +53,8 @@ use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
|
|||
|
||||
class EntityColumn extends AbstractColumn
|
||||
{
|
||||
protected $urlGenerator;
|
||||
protected $accessor;
|
||||
protected EntityURLGenerator $urlGenerator;
|
||||
protected PropertyAccessorInterface $accessor;
|
||||
|
||||
public function __construct(EntityURLGenerator $URLGenerator, PropertyAccessorInterface $accessor)
|
||||
{
|
||||
|
|
|
@ -48,8 +48,8 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
|||
|
||||
class LogEntryExtraColumn extends AbstractColumn
|
||||
{
|
||||
protected $translator;
|
||||
protected $formatter;
|
||||
protected TranslatorInterface $translator;
|
||||
protected LogEntryExtraFormatter $formatter;
|
||||
|
||||
public function __construct(TranslatorInterface $translator, LogEntryExtraFormatter $formatter)
|
||||
{
|
||||
|
|
|
@ -52,6 +52,7 @@ use App\Entity\Parts\PartLot;
|
|||
use App\Entity\PriceInformations\Orderdetail;
|
||||
use App\Entity\PriceInformations\Pricedetail;
|
||||
use App\Exceptions\EntityNotSupportedException;
|
||||
use App\Repository\LogEntryRepository;
|
||||
use App\Services\ElementTypeNameGenerator;
|
||||
use App\Services\EntityURLGenerator;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
@ -61,11 +62,11 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
|||
|
||||
class LogEntryTargetColumn extends AbstractColumn
|
||||
{
|
||||
protected $em;
|
||||
protected $entryRepository;
|
||||
protected $entityURLGenerator;
|
||||
protected $elementTypeNameGenerator;
|
||||
protected $translator;
|
||||
protected EntityManagerInterface $em;
|
||||
protected LogEntryRepository $entryRepository;
|
||||
protected EntityURLGenerator $entityURLGenerator;
|
||||
protected ElementTypeNameGenerator $elementTypeNameGenerator;
|
||||
protected TranslatorInterface $translator;
|
||||
|
||||
public function __construct(EntityManagerInterface $entityManager, EntityURLGenerator $entityURLGenerator,
|
||||
ElementTypeNameGenerator $elementTypeNameGenerator, TranslatorInterface $translator)
|
||||
|
|
|
@ -47,7 +47,7 @@ use Omines\DataTablesBundle\Column\AbstractColumn;
|
|||
|
||||
class MarkdownColumn extends AbstractColumn
|
||||
{
|
||||
protected $markdown;
|
||||
protected MarkdownParser $markdown;
|
||||
|
||||
public function __construct(MarkdownParser $markdown)
|
||||
{
|
||||
|
|
|
@ -53,9 +53,9 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
|
|||
|
||||
class PartAttachmentsColumn extends AbstractColumn
|
||||
{
|
||||
protected $FAIconGenerator;
|
||||
protected $urlGenerator;
|
||||
protected $attachmentManager;
|
||||
protected FAIconGenerator $FAIconGenerator;
|
||||
protected EntityURLGenerator $urlGenerator;
|
||||
protected AttachmentManager $attachmentManager;
|
||||
|
||||
public function __construct(FAIconGenerator $FAIconGenerator, EntityURLGenerator $urlGenerator, AttachmentManager $attachmentManager)
|
||||
{
|
||||
|
|
|
@ -7,8 +7,7 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
|||
|
||||
class PrettyBoolColumn extends AbstractColumn
|
||||
{
|
||||
|
||||
protected $translator;
|
||||
protected TranslatorInterface $translator;
|
||||
|
||||
public function __construct(TranslatorInterface $translator)
|
||||
{
|
||||
|
|
|
@ -33,8 +33,8 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
|||
|
||||
class RevertLogColumn extends AbstractColumn
|
||||
{
|
||||
protected $translator;
|
||||
protected $security;
|
||||
protected TranslatorInterface $translator;
|
||||
protected Security $security;
|
||||
|
||||
public function __construct(TranslatorInterface $translator, Security $security)
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
|
|||
|
||||
class SIUnitNumberColumn extends AbstractColumn
|
||||
{
|
||||
protected $formatter;
|
||||
protected SIFormatter $formatter;
|
||||
|
||||
public function __construct(SIFormatter $formatter)
|
||||
{
|
||||
|
|
|
@ -47,7 +47,7 @@ use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
|||
|
||||
class TagsColumn extends AbstractColumn
|
||||
{
|
||||
protected $urlGenerator;
|
||||
protected UrlGeneratorInterface $urlGenerator;
|
||||
|
||||
public function __construct(UrlGeneratorInterface $urlGenerator)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue