<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.
 */

namespace Sylius\Component\Core\Repository;

use Sylius\Component\Core\Model\PaymentInterface;
use Sylius\Component\Resource\Repository\RepositoryInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
interface PaymentRepositoryInterface extends RepositoryInterface
{
    /**
     * @param mixed $paymentId
     * @param mixed $orderId
     *
     * @return PaymentInterface|null
     */
    public function findOneByOrderId($paymentId, $orderId);
}
<commit_msg>[API] [Documentation] Payments endpoint<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.
 */

namespace Sylius\Component\Core\Repository;

use Doctrine\ORM\QueryBuilder;
use Sylius\Component\Core\Model\PaymentInterface;
use Sylius\Component\Resource\Repository\RepositoryInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
interface PaymentRepositoryInterface extends RepositoryInterface
{
    /**
     * @return QueryBuilder
     */
    public function createListQueryBuilder();

    /**
     * @param mixed $paymentId
     * @param mixed $orderId
     *
     * @return PaymentInterface|null
     */
    public function findOneByOrderId($paymentId, $orderId);
}

{'fraction_non_alphanumeric': 0.10733333333333334, 'fraction_numerical': 0.0, 'mean_word_length': 3.765079365079365, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '4216468', 'n_tokens_mistral': 425, 'n_tokens_neox': 424, 'n_words': 120}