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

@@ -48,7 +48,7 @@ class LoadAccompanyingPeriodClosingMotive extends AbstractFixture implements Ord
public static $references = [];
public function getOrder()
public function getOrder(): int
{
return 9500;
}

View File

@@ -38,7 +38,7 @@ class LoadAccompanyingPeriodNotifications extends AbstractFixture implements Dep
],
];
public function getDependencies()
public function getDependencies(): array
{
return [
LoadPeople::class,

View File

@@ -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;
}

View File

@@ -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,

View File

@@ -40,7 +40,7 @@ class LoadCustomFields extends AbstractFixture implements OrderedFixtureInterfac
) {}
// put your code here
public function getOrder()
public function getOrder(): int
{
return 10003;
}

View File

@@ -38,7 +38,7 @@ class LoadHousehold extends Fixture implements DependentFixtureInterface
$this->loader = new NativeLoader();
}
public function getDependencies()
public function getDependencies(): array
{
return [
LoadPeople::class,

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -25,7 +25,7 @@ use Doctrine\Persistence\ObjectManager;
*/
class LoadPersonACL extends AbstractFixture implements OrderedFixtureInterface
{
public function getOrder()
public function getOrder(): int
{
return 9600;
}

View File

@@ -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;
}

View File

@@ -169,7 +169,7 @@ class PersonSearch extends AbstractSearch implements HasAdvancedSearchFormInterf
*
* @see \Chill\MainBundle\Search\SearchInterface::getOrder()
*/
public function getOrder()
public function getOrder(): int
{
return 100;
}