' . implode('|', self::$usableViewMethods + self::$usableResourcesMethods) . ')\:(?.*)/', $parameter ?? '', $match ); } /** * Protected get import method * * @codeCoverageIgnore */ protected static function getImportMethod($getImportMethod, $firstParameter, $getOtherParameters) { return Singleton::class('ZN\Import')->$getImportMethod($firstParameter, ...$getOtherParameters); } /** * Protected get import method parameters * * @codeCoverageIgnore */ protected static function getImportMethodParameters($parameters) { return Singleton::class('ZN\DataTypes\Collection') ->data($parameters) ->removeFirst() ->addLast(true) ->get(); } }