/** * {@inheritDoc} */ public function getCodepointsByScript(Script $script) { $comparator = function (CodepointAssigned $item) use($script) { return $item->getGeneralProperties()->getScript()->equals($script); }; return $this->aggregatePropertiesWith($comparator, ScriptNotFoundException::withScript($script)); }
/** * {@inheritDoc} */ public function getCodepointsByScript(Properties\General\Script $script) { return $this->resolveCodepointsByProperty(Property::ofType(Property::SCRIPT), (string) $script, Repository\ScriptNotFoundException::withScript($script)); }