<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 Pagerfanta\PagerfantaInterface;
use Sylius\Component\Core\Model\ShipmentInterface;
use Sylius\Component\Resource\Repository\RepositoryInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
interface ShipmentRepositoryInterface extends RepositoryInterface
{
    /**
     * @param mixed $orderId
     * @param mixed $id
     *
     * @return ShipmentInterface|null
     */
    public function findByOrderIdAndId($orderId, $id);

    /**
     * @param string $name
     *
     * @return ShipmentInterface[]
     */
    public function findByName($name);

    /**
     * @param array $criteria
     * @param array $sorting
     *
     * @return PagerfantaInterface
     */
    public function createFilterPaginator(array $criteria = null, array $sorting = null);
}<commit_msg>PR review fixes + find by name and locale in repositories<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 Pagerfanta\PagerfantaInterface;
use Sylius\Component\Core\Model\ShipmentInterface;
use Sylius\Component\Resource\Repository\RepositoryInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
interface ShipmentRepositoryInterface extends RepositoryInterface
{
    /**
     * @param mixed $orderId
     * @param mixed $id
     *
     * @return ShipmentInterface|null
     */
    public function findByOrderIdAndId($orderId, $id);

    /**
     * @param string $name
     * @param string $locale
     *
     * @return ShipmentInterface[]
     */
    public function findByName($name, $locale);

    /**
     * @param array $criteria
     * @param array $sorting
     *
     * @return PagerfantaInterface
     */
    public function createFilterPaginator(array $criteria = null, array $sorting = null);
}
{'fraction_non_alphanumeric': 0.10780669144981413, 'fraction_numerical': 0.0, 'mean_word_length': 3.213307240704501, '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': '6876533', 'n_tokens_mistral': 629, 'n_tokens_neox': 628, 'n_words': 175}