
| Current Path : /var/www/html/strat/vendor/chi-teck/drupal-code-generator/src/Asset/Resolver/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/strat/vendor/chi-teck/drupal-code-generator/src/Asset/Resolver/ResolverInterface.php |
<?php
declare(strict_types=1);
namespace DrupalCodeGenerator\Asset\Resolver;
use DrupalCodeGenerator\Asset\Asset;
/**
* Interface resolver.
*
* A resolver is called when the asset with the same path already exists in the
* file system. The purpose of the resolver is to merge the existing asset with
* the one provided by a generator.
*/
interface ResolverInterface {
/**
* Resolves an asset.
*
* Returns the resolved asset or NULL if existing asset is up-to-date.
*
* @throw \InvalidArgumentException
*/
public function resolve(Asset $asset, string $path): ?Asset;
}