Add int return type to getOrder() method in fixture classes

This commit is contained in:
2024-11-28 12:20:17 +01:00
parent 8a16030b49
commit fa767110e8
44 changed files with 47 additions and 47 deletions

View File

@@ -33,7 +33,7 @@ class LoadAddressReferences extends AbstractFixture implements ContainerAwareInt
$this->faker = \Faker\Factory::create('fr_FR');
}
public function getOrder()
public function getOrder(): int
{
return 51;
}

View File

@@ -31,7 +31,7 @@ class LoadCenters extends AbstractFixture implements OrderedFixtureInterface
public static $refs = [];
public function getOrder()
public function getOrder(): int
{
return 100;
}

View File

@@ -25,12 +25,12 @@ class LoadCountries extends AbstractFixture implements ContainerAwareInterface,
{
private ?ContainerInterface $container = null;
public function getOrder()
public function getOrder(): int
{
return 20;
}
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
echo "loading countries... \n";

View File

@@ -38,7 +38,7 @@ class LoadGenders extends AbstractFixture implements OrderedFixtureInterface
],
];
public function getOrder()
public function getOrder(): int
{
return 100;
}

View File

@@ -20,7 +20,7 @@ class LoadGroupCenters extends AbstractFixture implements OrderedFixtureInterfac
{
public static $refs = [];
public function getOrder()
public function getOrder(): int
{
return 500;
}

View File

@@ -33,7 +33,7 @@ class LoadLanguages extends AbstractFixture implements ContainerAwareInterface,
// This array contains regional code to not exclude
private array $regionalVersionToInclude = ['ro_MD'];
public function getOrder()
public function getOrder(): int
{
return 10;
}

View File

@@ -25,7 +25,7 @@ class LoadLocationType extends AbstractFixture implements ContainerAwareInterfac
{
private ?ContainerInterface $container = null;
public function getOrder()
public function getOrder(): int
{
return 52;
}

View File

@@ -47,7 +47,7 @@ class LoadPermissionsGroup extends AbstractFixture implements OrderedFixtureInte
public static $refs = [];
public function getOrder()
public function getOrder(): int
{
return 400;
}

View File

@@ -325,7 +325,7 @@ class LoadPostalCodes extends AbstractFixture implements OrderedFixtureInterface
85800,GIVRAND,FR,85100,46.6822701061,-1.8787272243,INSEE
EOF;
public function getOrder()
public function getOrder(): int
{
return 50;
}

View File

@@ -44,7 +44,7 @@ class LoadRoleScopes extends AbstractFixture implements OrderedFixtureInterface
public static $references = [];
public function getOrder()
public function getOrder(): int
{
return 300;
}

View File

@@ -46,7 +46,7 @@ class LoadScopes extends AbstractFixture implements OrderedFixtureInterface
],
];
public function getOrder()
public function getOrder(): int
{
return 200;
}

View File

@@ -54,7 +54,7 @@ class LoadUsers extends AbstractFixture implements ContainerAwareInterface, Orde
private ?ContainerInterface $container = null;
public function getOrder()
public function getOrder(): int
{
return 1000;
}

View File

@@ -37,7 +37,7 @@ interface SearchInterface
*
* @return int
*/
public function getOrder();
public function getOrder(): int;
/**
* we may desactive the search interface by default. in this case,