\phpDocumentor\Plugin\Core\Descriptor\Validator\Constraints\ClassesHasPackageWithSubpackageValidator

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

Summary

Methods
Properties
Constants
validate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

validate()

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

Checks if the passed value is valid.

Parameters

\phpDocumentor\Descriptor\FileDescriptor|\phpDocumentor\Descriptor\ClassDescriptor|\phpDocumentor\Descriptor\InterfaceDescriptor|\phpDocumentor\Descriptor\TraitDescriptor $value

The value that should be validated.

\Symfony\Component\Validator\Constraint $constraint

The constraint for the validation.

Throws

\Symfony\Component\Validator\Exception\ConstraintDefinitionException

if this is not a constraint on a PropertyDescriptor object.