Skip to content

Commit

Permalink
--
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilvestre committed Jul 30, 2024
1 parent 6fad493 commit 719d827
Show file tree
Hide file tree
Showing 38 changed files with 41 additions and 41 deletions.
8 changes: 4 additions & 4 deletions src/Foundry/Factory/OrderSequenceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository;
use Sylius\Component\Core\Model\OrderSequence;
use Sylius\Component\Core\Model\OrderSequenceInterface;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;
use Zenstruck\Foundry\Persistence\Proxy;
use Zenstruck\Foundry\Persistence\ProxyRepositoryDecorator;

/**
* @extends ModelFactory<OrderSequenceInterface>
* @extends PersistentProxyObjectFactory<OrderSequenceInterface>
*
* @method OrderSequenceInterface|Proxy create(array|callable $attributes = [])
* @method static OrderSequenceInterface|Proxy createOne(array $attributes = [])
Expand All @@ -39,11 +39,11 @@
* @method static OrderSequenceInterface[]|Proxy[] randomRange(int $min, int $max, array $attributes = [])
* @method static OrderSequenceInterface[]|Proxy[] randomSet(int $number, array $attributes = [])
*/
final class OrderSequenceFactory extends ModelFactory implements FactoryWithModelClassAwareInterface
final class OrderSequenceFactory extends PersistentProxyObjectFactory implements FactoryWithModelClassAwareInterface
{
use WithModelClassTrait;

protected function getDefaults(): array
public function defaults(): array
{
return [];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/PromotionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function withCoupons(array $coupons): self
return $this->with(['coupons' => $coupons]);
}

protected function getDefaults(): array
public function defaults(): array
{
return [
'appliesToDiscounted' => self::faker()->boolean(),
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/ShopBillingDataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function withPostcode(string $postcode): self
return $this->with(['postcode' => $postcode]);
}

protected function getDefaults(): array
public function defaults(): array
{
return [];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/FemaleTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Sylius\Component\Customer\Model\CustomerInterface;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/MaleTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Sylius\Component\Customer\Model\CustomerInterface;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/ToggableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/TranslatableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithAvatarTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithBirthdayTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithChannelTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Sylius\Component\Core\Model\ChannelInterface;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;
use Zenstruck\Foundry\Persistence\Proxy;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithChannelsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithCodeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithCommentTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithConfigurationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithCountryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Sylius\Component\Addressing\Model\CountryInterface;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;
use Zenstruck\Foundry\Persistence\Proxy;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithCurrenciesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithCustomerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Sylius\Component\Core\Model\CustomerInterface;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;
use Zenstruck\Foundry\Persistence\Proxy;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithDescriptionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithEmailTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithFirstNameTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithImagesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithLastNameTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithLocaleCodeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithLocalesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithNameTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithPasswordTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithPhoneNumberTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithPriorityTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithProductAttributesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithShortDescriptionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithSlugTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithStatusTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithTaxCategoryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Sylius\Component\Taxation\Model\TaxCategoryInterface;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;
use Zenstruck\Foundry\Persistence\Proxy;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithTaxaTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithTitleTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithTypeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithUsernameTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;

/**
* @mixin ModelFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Factory/State/WithZoneTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace Akawakaweb\SyliusFixturesPlugin\Foundry\Factory\State;

use Sylius\Component\Addressing\Model\ZoneInterface;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;
use Zenstruck\Foundry\Persistence\Proxy;

/**
Expand Down

0 comments on commit 719d827

Please sign in to comment.