<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\Bundle\ApiBundle\Command\Cart;

final class RemoveItemFromCart
{
    /** @var string|null */
    public $tokenValue;

    /**
     * @var string
     * @psalm-immutable
     */
    public $orderItemId;

    public function __construct(string $orderItemId)
    {
        $this->orderItemId = $orderItemId;
    }

    public static function removeFromData(string $tokenValue, string $orderItemId): self
    {
        $command = new self($orderItemId);

        $command->tokenValue = $tokenValue;

        return $command;
    }
}
<commit_msg>[Minor] Remove final keyword<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\Bundle\ApiBundle\Command\Cart;

class RemoveItemFromCart
{
    /** @var string|null */
    public $tokenValue;

    /**
     * @var string
     * @psalm-immutable
     */
    public $orderItemId;

    public function __construct(string $orderItemId)
    {
        $this->orderItemId = $orderItemId;
    }

    public static function removeFromData(string $tokenValue, string $orderItemId): self
    {
        $command = new self($orderItemId);

        $command->tokenValue = $tokenValue;

        return $command;
    }
}

{'fraction_non_alphanumeric': 0.10870907967881409, 'fraction_numerical': 0.0012353304508956147, 'mean_word_length': 2.884892086330935, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '3955427', 'n_tokens_mistral': 496, 'n_tokens_neox': 484, 'n_words': 134}