Make non-instantiable utils classes consistent with each other

This commit is contained in:
Roman Marintsenko 2012-10-31 12:04:56 +02:00 committed by Fabien Potencier
parent f61457d82b
commit 07bd5c6306
3 changed files with 16 additions and 5 deletions

View File

@ -14,7 +14,7 @@ namespace Symfony\Component\Form\Util;
/** /**
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
*/ */
abstract class FormUtil class FormUtil
{ {
/** /**
* Map english plural to singular suffixes * Map english plural to singular suffixes
@ -97,6 +97,11 @@ abstract class FormUtil
array('xuae', 4, false, true, 'eau'), array('xuae', 4, false, true, 'eau'),
); );
/**
* This class should not be instantiated
*/
private function __construct() {}
/** /**
* Returns the singular form of a word * Returns the singular form of a word
* *

View File

@ -36,6 +36,11 @@ class ClassUtils
*/ */
const MARKER_LENGTH = 6; const MARKER_LENGTH = 6;
/**
* This class should not be instantiated
*/
private function __construct() {}
/** /**
* Gets the real class name of a class name that could be a proxy. * Gets the real class name of a class name that could be a proxy.
* *

View File

@ -16,11 +16,12 @@ namespace Symfony\Component\Security\Core\Util;
* *
* @author Fabien Potencier <fabien@symfony.com> * @author Fabien Potencier <fabien@symfony.com>
*/ */
final class StringUtils class StringUtils
{ {
final private function __construct() /**
{ * This class should not be instantiated
} */
private function __construct() {}
/** /**
* Compares two strings. * Compares two strings.