HasPackageWithSubpackageValidator

Extends \Symfony\Component\Validator\ConstraintValidator

Validates whether a file, class, interface or trait always has a package if there is a subpackage present.

package

Default

Methods

Checks if the passed value is valid.

validate(\phpDocumentor\Descriptor\FileDescriptor|\phpDocumentor\Descriptor\ClassDescriptor|\phpDocumentor\Descriptor\InterfaceDescriptor|\phpDocumentor\Descriptor\TraitDescriptor $value, \Symfony\Component\Validator\Constraint $constraint) 
Throws
\Symfony\Component\Validator\Exception\ConstraintDefinitionException

if this is not a constraint on a PropertyDescriptor object.

Arguments

$constraint

\Symfony\Component\Validator\Constraint

The constraint for the validation.