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