/** * 2016-01-26 * @param string $entityType * @param int|string|null|bool|StoreInterface $store [optional] * @return _Meta|Meta */ function df_sales_seq_meta($entityType, $store = null) { return dfcf(function ($entityType, $store = null) { /** @var RMeta $r */ $r = df_o(RMeta::class); /** * 2016-01-26 * По аналогии с @see \Magento\SalesSequence\Model\Manager::getSequence() * https://github.com/magento/magento2/blob/d50ee5/app/code/Magento/SalesSequence/Model/Manager.php#L48 */ return $r->loadByEntityTypeAndStore($entityType, df_store_id($store)); }, func_get_args()); }
/** * 2016-05-20 * @param int|string|null|bool|IStore $store [optional] * @return CC */ function df_countries_allowed($store = null) { return dfcf(function ($store = null) { return C::c()->loadByStore(df_store_id($store)); }, func_get_args()); }