mirror of
https://github.com/jbcr/ezmigrationbundle.git
synced 2026-03-24 17:02:15 +01:00
24 lines
602 B
PHP
24 lines
602 B
PHP
<?php
|
|
|
|
namespace Kaliop\eZMigrationBundle\API;
|
|
|
|
/**
|
|
* Used to resolve references 'embedded' inside strings (as opposed to references which completely replace strings).
|
|
*/
|
|
interface EmbeddedReferenceResolverInterface
|
|
{
|
|
/**
|
|
* @param string $string
|
|
* @return bool true if the given string contains at least one occurrence of the reference(s)
|
|
*/
|
|
public function hasEmbeddedReferences($string);
|
|
|
|
/**
|
|
* Returns the string with eventual refs resolved
|
|
*
|
|
* @param string $string
|
|
* @return string
|
|
*/
|
|
public function resolveEmbeddedReferences($string);
|
|
}
|