Private/Polyfony/Response/HTML.php
public static function set(array $assets) :void {
		// for each batch
		foreach($assets as $category => $scripts_or_links_or_metas) {
			// if the batch is scripts
			if($category == 'scripts') {
				self::setScripts($scripts_or_links_or_metas);
			}
			// if the batch is links
			elseif($category == 'links') {
				self::setLinks($scripts_or_links_or_metas);
			}
			// if the match is metas
			elseif($category == 'metas') {
				self::setMetas($scripts_or_links_or_metas);
			}
		}
	}
public static function set(array $assets) :void {
		// for each batch
		foreach($assets as $category => $scripts_or_links_or_metas) {
			// if the batch is scripts
			if($category == 'scripts') {
				self::setScripts($scripts_or_links_or_metas);
			}
			// if the batch is links
			elseif($category == 'links') {
				self::setLinks($scripts_or_links_or_metas);
			}
			// if the match is metas
			elseif($category == 'metas') {
				self::setMetas($scripts_or_links_or_metas);
			}
		}
	}
public static function set ( array $ assets ) : void { // for each batch foreach ( $ assets as $ category => $ scripts_or_links_or_metas ) { // if the batch is scripts if ( $ category == 'scripts' ) { self :: setScripts ( $ scripts_or_links_or_metas ) ; } // if the batch is links elseif ( $ category == 'links' ) { self :: setLinks ( $ scripts_or_links_or_metas ) ; } // if the match is metas elseif ( $ category == 'metas' ) { self :: setMetas ( $ scripts_or_links_or_metas ) ; } } }
shortcuts to quickly set multiple things
shortcuts to quickly set multiple things