<commit_before><?php

/*
 * This file is part of the Sylius package.
 *
 * (c) <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace Sylius\Component\Promotion\Model;

use Sylius\Component\Resource\Model\ResourceInterface;

interface CatalogPromotionActionInterface extends ResourceInterface
{
    public const TYPE_PERCENTAGE_DISCOUNT = 'percentage_product_discount';

    public function setType(?string $type): void;

    public function setConfiguration(array $configuration): void;

    public function setCatalogPromotion(?CatalogPromotionInterface $catalogPromotion): void;

    public function getType(): ?string;

    public function getConfiguration(): array;

    public function getCatalogPromotion(): ?CatalogPromotionInterface;
}
<commit_msg>Change action configuration amount to float<commit_after><?php

/*
 * This file is part of the Sylius package.
 *
 * (c) <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace Sylius\Component\Promotion\Model;

use Sylius\Component\Resource\Model\ResourceInterface;

interface CatalogPromotionActionInterface extends ResourceInterface
{
    public const TYPE_PERCENTAGE_DISCOUNT = 'percentage_discount';

    public function setType(?string $type): void;

    public function setConfiguration(array $configuration): void;

    public function setCatalogPromotion(?CatalogPromotionInterface $catalogPromotion): void;

    public function getType(): ?string;

    public function getConfiguration(): array;

    public function getCatalogPromotion(): ?CatalogPromotionInterface;
}

{'fraction_non_alphanumeric': 0.08080808080808081, 'fraction_numerical': 0.001122334455667789, 'mean_word_length': 5.322695035460993, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6600884', 'n_tokens_mistral': 470, 'n_tokens_neox': 459, 'n_words': 145}