Skip to content

Commit f243720

Browse files
Remove useless docblocks
1 parent 76989b9 commit f243720

22 files changed

+7
-255
lines changed

Constraint.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,29 +33,21 @@ abstract class Constraint
3333
{
3434
/**
3535
* The name of the group given to all constraints with no explicit group.
36-
*
37-
* @var string
3836
*/
3937
const DEFAULT_GROUP = 'Default';
4038

4139
/**
4240
* Marks a constraint that can be put onto classes.
43-
*
44-
* @var string
4541
*/
4642
const CLASS_CONSTRAINT = 'class';
4743

4844
/**
4945
* Marks a constraint that can be put onto properties.
50-
*
51-
* @var string
5246
*/
5347
const PROPERTY_CONSTRAINT = 'property';
5448

5549
/**
5650
* Maps error codes to the names of their constants.
57-
*
58-
* @var array
5951
*/
6052
protected static $errorNames = array();
6153

ConstraintValidator.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,11 @@ abstract class ConstraintValidator implements ConstraintValidatorInterface
2525
/**
2626
* Whether to format {@link \DateTime} objects as RFC-3339 dates
2727
* ("Y-m-d H:i:s").
28-
*
29-
* @var int
3028
*/
3129
const PRETTY_DATE = 1;
3230

3331
/**
3432
* Whether to cast objects with a "__toString()" method to strings.
35-
*
36-
* @var int
3733
*/
3834
const OBJECT_TO_STRING = 2;
3935

Constraints/EmailValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
*/
2323
class EmailValidator extends ConstraintValidator
2424
{
25-
/**
26-
* @var bool
27-
*/
2825
private $isStrict;
2926

27+
/**
28+
* @param bool $strict
29+
*/
3030
public function __construct($strict = false)
3131
{
3232
$this->isStrict = $strict;

Constraints/ExpressionValidator.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
*/
2828
class ExpressionValidator extends ConstraintValidator
2929
{
30-
/**
31-
* @var PropertyAccessorInterface
32-
*/
3330
private $propertyAccessor;
3431

3532
/**
@@ -38,16 +35,10 @@ class ExpressionValidator extends ConstraintValidator
3835
private $expressionLanguage;
3936

4037
/**
41-
* @param PropertyAccessorInterface|null $propertyAccessor Optional as of Symfony 2.5
42-
*
4338
* @throws UnexpectedTypeException If the property accessor is invalid
4439
*/
45-
public function __construct($propertyAccessor = null)
40+
public function __construct(PropertyAccessorInterface $propertyAccessor = null)
4641
{
47-
if (null !== $propertyAccessor && !$propertyAccessor instanceof PropertyAccessorInterface) {
48-
throw new UnexpectedTypeException($propertyAccessor, 'null or \Symfony\Component\PropertyAccess\PropertyAccessorInterface');
49-
}
50-
5142
$this->propertyAccessor = $propertyAccessor;
5243
}
5344

Context/ExecutionContextFactory.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,7 @@
2424
*/
2525
class ExecutionContextFactory implements ExecutionContextFactoryInterface
2626
{
27-
/**
28-
* @var TranslatorInterface
29-
*/
3027
private $translator;
31-
32-
/**
33-
* @var string|null
34-
*/
3528
private $translationDomain;
3629

3730
/**

Context/LegacyExecutionContext.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
*/
2727
class LegacyExecutionContext extends ExecutionContext
2828
{
29-
/**
30-
* @var MetadataFactoryInterface
31-
*/
3229
private $metadataFactory;
3330

3431
/**

Context/LegacyExecutionContextFactory.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,8 @@
2828
*/
2929
class LegacyExecutionContextFactory implements ExecutionContextFactoryInterface
3030
{
31-
/**
32-
* @var MetadataFactoryInterface
33-
*/
3431
private $metadataFactory;
35-
36-
/**
37-
* @var TranslatorInterface
38-
*/
3932
private $translator;
40-
41-
/**
42-
* @var string|null
43-
*/
4433
private $translationDomain;
4534

4635
/**

ExecutionContext.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -28,39 +28,12 @@
2828
*/
2929
class ExecutionContext implements ExecutionContextInterface
3030
{
31-
/**
32-
* @var GlobalExecutionContextInterface
33-
*/
3431
private $globalContext;
35-
36-
/**
37-
* @var TranslatorInterface
38-
*/
3932
private $translator;
40-
41-
/**
42-
* @var null|string
43-
*/
4433
private $translationDomain;
45-
46-
/**
47-
* @var MetadataInterface
48-
*/
4934
private $metadata;
50-
51-
/**
52-
* @var mixed
53-
*/
5435
private $value;
55-
56-
/**
57-
* @var string
58-
*/
5936
private $group;
60-
61-
/**
62-
* @var string
63-
*/
6437
private $propertyPath;
6538

6639
/**

ExecutionContextInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ public function addViolationAt($subPath, $message, array $parameters = array(),
150150
* @param null|string|string[] $groups The groups to validate in. If you don't pass any
151151
* groups here, the current group of the context
152152
* will be used.
153-
* @param bool $traverse whether to traverse the value if it is an array
153+
* @param bool $traverse Whether to traverse the value if it is an array
154154
* or an instance of <tt>\Traversable</tt>
155-
* @param bool $deep whether to traverse the value recursively if
155+
* @param bool $deep Whether to traverse the value recursively if
156156
* it is a collection of collections
157157
*
158158
* @deprecated since version 2.5, to be removed in 3.0.

Mapping/Factory/LazyLoadingMetadataFactory.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,7 @@
4040
*/
4141
class LazyLoadingMetadataFactory implements MetadataFactoryInterface
4242
{
43-
/**
44-
* The loader for loading the class metadata.
45-
*
46-
* @var LoaderInterface|null
47-
*/
4843
protected $loader;
49-
50-
/**
51-
* The cache for caching class metadata.
52-
*
53-
* @var CacheInterface|null
54-
*/
5544
protected $cache;
5645

5746
/**

0 commit comments

Comments
 (0)