getNumberRangeId example



    private function assertNumberRangeSalesChannel(
        string $numberRangeId,
        ?NumberRangeSalesChannelCollection $getNumberRangeSalesChannels
    ): void {
        static::assertInstanceOf(NumberRangeSalesChannelCollection::class$getNumberRangeSalesChannels);

        $numberRangeSalesChannel = $getNumberRangeSalesChannels->first();

        static::assertInstanceOf(NumberRangeSalesChannelEntity::class$numberRangeSalesChannel);
        static::assertEquals($numberRangeId$numberRangeSalesChannel->getNumberRangeId());
        static::assertEquals(TestDefaults::SALES_CHANNEL, $numberRangeSalesChannel->getSalesChannelId());
        static::assertEquals($numberRangeId$numberRangeSalesChannel->getNumberRangeTypeId());
    }
}
/** * @extends EntityCollection<NumberRangeTranslationEntity> */
#[Package('checkout')] class NumberRangeTranslationCollection extends EntityCollection
{
    /** * @return list<string> */
    public function getNumberRangeIds(): array
    {
        return $this->fmap(fn (NumberRangeTranslationEntity $numberRangeTranslation) => $numberRangeTranslation->getNumberRangeId());
    }

    public function filterByNumberRangeId(string $id): self
    {
        return $this->filter(fn (NumberRangeTranslationEntity $numberRangeTranslation) => $numberRangeTranslation->getNumberRangeId() === $id);
    }

    /** * @return list<string> */
    public function getLanguageIds(): array
    {
Home | Imprint | This part of the site doesn't use cookies.