public getPropertyValidators ( string $propertyName = null ) : array | ||
$propertyName | string | Name of the property to return validators for |
return | array | An array of validators |
public function getPropertyValidators($propertyName = null)
{
if ($propertyName !== null) {
return isset($this->propertyValidators[$propertyName]) ? $this->propertyValidators[$propertyName] : [];
} else {
return $this->propertyValidators;
}
}