original_string: private function createPackageDefinition($basePath, array $baseUrls, Reference $version)
      {
          if ($basePath && $baseUrls) {
              throw new \LogicException('An asset package cannot have base URLs and base paths.');
          }
  
          $package = new ChildDefinition($baseUrls ? 'assets.url_package' : 'assets.path_package');
          $package
              ->setPublic(false)
              ->replaceArgument(0, $baseUrls ?: $basePath)
              ->replaceArgument(1, $version)
          ;
  
          return $package;
      }
code: private function createPackageDefinition($basePath, array $baseUrls, Reference $version)
      {
          if ($basePath && $baseUrls) {
              throw new \LogicException('An asset package cannot have base URLs and base paths.');
          }
  
          $package = new ChildDefinition($baseUrls ? 'assets.url_package' : 'assets.path_package');
          $package
              ->setPublic(false)
              ->replaceArgument(0, $baseUrls ?: $basePath)
              ->replaceArgument(1, $version)
          ;
  
          return $package;
      }
code_tokens: private function createPackageDefinition ( $ basePath , array $ baseUrls , Reference $ version ) { if ( $ basePath && $ baseUrls ) { throw new \ LogicException ( 'An asset package cannot have base URLs and base paths.' ) ; } $ package = new ChildDefinition ( $ baseUrls ? 'assets.url_package' : 'assets.path_package' ) ; $ package -> setPublic ( false ) -> replaceArgument ( 0 , $ baseUrls ? : $ basePath ) -> replaceArgument ( 1 , $ version ) ; return $ package ; }
docstring: Returns a definition for an asset package.
docstring_tokens: Returns a definition for an asset package .