/**
  * {@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));
 }
Example #2
0
 /**
  * {@inheritDoc}
  */
 public function getCodepointsByBlock(Properties\General\Block $block)
 {
     return $this->resolveCodepointsByProperty(Property::ofType(Property::BLOCK), (string) $block, Repository\BlockNotFoundException::withBlock($block));
 }