getNumberRangeTypeId example

/** * @extends EntityCollection<NumberRangeTypeTranslationEntity> */
#[Package('checkout')] class NumberRangeTypeTranslationCollection extends EntityCollection
{
    /** * @return list<string> */
    public function getNumberRangeTypeIds(): array
    {
        return $this->fmap(fn (NumberRangeTypeTranslationEntity $numberRangeTypeTranslation) => $numberRangeTypeTranslation->getNumberRangeTypeId());
    }

    public function filterByNumberRangeTypeId(string $id): self
    {
        return $this->filter(fn (NumberRangeTypeTranslationEntity $numberRangeTypeTranslation) => $numberRangeTypeTranslation->getNumberRangeTypeId() === $id);
    }

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