Permalink
Browse files

[Validator] Added inheritDoc phpdoc for validate methods

  • Loading branch information...
1 parent 5cbcf29 commit 9bde5275d911c9c77e6b8e3bb13a97752a171ba2 @danielholmes danielholmes committed Jul 15, 2012
View
7 Constraints/AllValidator.php
@@ -23,12 +23,7 @@
class AllValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/BlankValidator.php
@@ -22,12 +22,7 @@
class BlankValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/CallbackValidator.php
@@ -26,12 +26,7 @@
class CallbackValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $object The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($object, Constraint $constraint)
{
View
7 Constraints/ChoiceValidator.php
@@ -28,12 +28,7 @@
class ChoiceValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/CollectionValidator.php
@@ -25,12 +25,7 @@
class CollectionValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
5 Constraints/CountValidator.php
@@ -21,10 +21,7 @@
class CountValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/CountryValidator.php
@@ -25,12 +25,7 @@
class CountryValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/DateValidator.php
@@ -25,12 +25,7 @@ class DateValidator extends ConstraintValidator
const PATTERN = '/^(\d{4})-(\d{2})-(\d{2})$/';
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/EmailValidator.php
@@ -23,12 +23,7 @@
class EmailValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/FalseValidator.php
@@ -22,12 +22,7 @@
class FalseValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/FileValidator.php
@@ -26,12 +26,7 @@
class FileValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
3 Constraints/ImageValidator.php
@@ -22,6 +22,9 @@
*/
class ImageValidator extends FileValidator
{
+ /**
+ * {@inheritDoc}
+ */
public function validate($value, Constraint $constraint)
{
$violations = count($this->context->getViolations());
View
7 Constraints/IpValidator.php
@@ -26,12 +26,7 @@
class IpValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/LanguageValidator.php
@@ -25,12 +25,7 @@
class LanguageValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
5 Constraints/LengthValidator.php
@@ -21,10 +21,7 @@
class LengthValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/LocaleValidator.php
@@ -25,12 +25,7 @@
class LocaleValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/MaxLengthValidator.php
@@ -25,12 +25,7 @@
class MaxLengthValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/MaxValidator.php
@@ -24,12 +24,7 @@
class MaxValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constrain for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/MinLengthValidator.php
@@ -25,12 +25,7 @@
class MinLengthValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/NotBlankValidator.php
@@ -22,12 +22,7 @@
class NotBlankValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/NotNullValidator.php
@@ -22,12 +22,7 @@
class NotNullValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/NullValidator.php
@@ -22,12 +22,7 @@
class NullValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/RangeValidator.php
@@ -20,12 +20,7 @@
class RangeValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @return Boolean Whether or not the value is valid
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/RegexValidator.php
@@ -26,12 +26,7 @@
class RegexValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/TimeValidator.php
@@ -25,12 +25,7 @@ class TimeValidator extends ConstraintValidator
const PATTERN = '/^(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/';
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/TrueValidator.php
@@ -22,12 +22,7 @@
class TrueValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/TypeValidator.php
@@ -22,12 +22,7 @@
class TypeValidator extends ConstraintValidator
{
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{
View
7 Constraints/UrlValidator.php
@@ -38,12 +38,7 @@ class UrlValidator extends ConstraintValidator
$~ixu';
/**
- * Checks if the passed value is valid.
- *
- * @param mixed $value The value that should be validated
- * @param Constraint $constraint The constraint for the validation
- *
- * @api
+ * {@inheritDoc}
*/
public function validate($value, Constraint $constraint)
{

0 comments on commit 9bde527

Please sign in to comment.