/** * {@inheritDoc} */ public function getCodepointsByBlock(Block $block) { $comparator = function (CodepointAssigned $item) use($block) { return $item->getGeneralProperties()->getBlock()->equals($block); }; return $this->aggregatePropertiesWith($comparator, BlockNotFoundException::withBlock($block)); }
/** * {@inheritDoc} */ public function getCodepointsByBlock(Properties\General\Block $block) { return $this->resolveCodepointsByProperty(Property::ofType(Property::BLOCK), (string) $block, Repository\BlockNotFoundException::withBlock($block)); }