. */ namespace Doctrine\ORM; /** * A set of rules for determining the physical column and table names * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.org * @since 2.3 * @author Fabio B. Silva */ interface NamingStrategy { /** * Return a table name for an entity class * * @param string $className The fully-qualified class name * @return string A table name */ function classToTableName($className); /** * Return a column name for a property * * @param string $propertyName A property * @return string A column name */ function propertyToColumnName($propertyName); /** * Return the default reference column name * * @return string A column name */ function referenceColumnName(); /** * Return a join column name for a property * * @param string $propertyName A property * @return string A column name */ function joinColumnName($propertyName); /** * Return a join table name * * @param string $sourceEntity * @param string $targetEntity * @param string $propertyName */ function joinTableName($sourceEntity, $targetEntity, $propertyName = null); /** * Return the foreign key column name for the given parameters * * @param string $entityName * @param string $referencedColumnName */ function joinKeyColumnName($entityName, $referencedColumnName = null); }