mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
Add int return type to getOrder() method in fixture classes
This commit is contained in:
@@ -48,7 +48,7 @@ class LoadAccompanyingPeriodClosingMotive extends AbstractFixture implements Ord
|
||||
|
||||
public static $references = [];
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 9500;
|
||||
}
|
||||
|
@@ -38,7 +38,7 @@ class LoadAccompanyingPeriodNotifications extends AbstractFixture implements Dep
|
||||
],
|
||||
];
|
||||
|
||||
public function getDependencies()
|
||||
public function getDependencies(): array
|
||||
{
|
||||
return [
|
||||
LoadPeople::class,
|
||||
|
@@ -27,7 +27,7 @@ class LoadAccompanyingPeriodOrigin extends AbstractFixture implements OrderedFix
|
||||
|
||||
private array $phoneCall = ['en' => 'phone call', 'fr' => 'appel téléphonique'];
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 9000;
|
||||
}
|
||||
|
@@ -28,7 +28,7 @@ class LoadAccompanyingPeriodWork extends \Doctrine\Bundle\FixturesBundle\Fixture
|
||||
|
||||
public function __construct(private readonly AccompanyingPeriodRepository $periodRepository, private readonly EvaluationRepository $evaluationRepository) {}
|
||||
|
||||
public function getDependencies()
|
||||
public function getDependencies(): array
|
||||
{
|
||||
return [
|
||||
LoadPeople::class,
|
||||
|
@@ -40,7 +40,7 @@ class LoadCustomFields extends AbstractFixture implements OrderedFixtureInterfac
|
||||
) {}
|
||||
|
||||
// put your code here
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 10003;
|
||||
}
|
||||
|
@@ -38,7 +38,7 @@ class LoadHousehold extends Fixture implements DependentFixtureInterface
|
||||
$this->loader = new NativeLoader();
|
||||
}
|
||||
|
||||
public function getDependencies()
|
||||
public function getDependencies(): array
|
||||
{
|
||||
return [
|
||||
LoadPeople::class,
|
||||
|
@@ -31,7 +31,7 @@ class LoadMaritalStatus extends AbstractFixture implements OrderedFixtureInterfa
|
||||
['id' => 'unknown', 'name' => ['en' => 'unknown', 'fr' => 'indéterminé']],
|
||||
];
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 9999;
|
||||
}
|
||||
|
@@ -241,7 +241,7 @@ class LoadPeople extends AbstractFixture implements ContainerAwareInterface, Ord
|
||||
$this->loader = new NativeLoader($this->faker);
|
||||
}
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 10000;
|
||||
}
|
||||
|
@@ -25,7 +25,7 @@ use Doctrine\Persistence\ObjectManager;
|
||||
*/
|
||||
class LoadPersonACL extends AbstractFixture implements OrderedFixtureInterface
|
||||
{
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 9600;
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ class LoadSocialWorkMetadata extends Fixture implements OrderedFixtureInterface
|
||||
{
|
||||
public function __construct(private readonly SocialWorkMetadata $importer) {}
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 9500;
|
||||
}
|
||||
|
Reference in New Issue
Block a user