sintonia/library/propel/generator/lib/builder/util/DefaultEnglishPluralizer.php

34 lines
773 B
PHP

<?php
/**
* This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
require_once 'builder/util/Pluralizer.php';
/**
* The default Enlglish pluralizer class.
*
* @author Hans Lellelid <hans@xmpl.org>
* @version $Revision: 1612 $
* @package propel.generator.builder.util
*/
class DefaultEnglishPluralizer implements Pluralizer
{
/**
* Generate a plural name based on the passed in root.
* @param string $root The root that needs to be pluralized (e.g. Author)
* @return string The plural form of $root (e.g. Authors).
*/
public function getPluralForm($root)
{
return $root . 's';
}
}