public function getPropertyValidators($propertyName = null)
    {
        if ($propertyName !== null) {
            return $this->propertyValidators[$propertyName] ?? [];
        }
        return $this->propertyValidators;
    }
public function getPropertyValidators($propertyName = null)
    {
        if ($propertyName !== null) {
            return $this->propertyValidators[$propertyName] ?? [];
        }
        return $this->propertyValidators;
    }
public function getPropertyValidators ( $ propertyName = null ) { if ( $ propertyName !== null ) { return $ this -> propertyValidators [ $ propertyName ] ?? [ ] ; } return $ this -> propertyValidators ; }
Returns all property validators - or only validators of the specified property

@param string $propertyName Name of the property to return validators for
@return array An array of validators
Returns all property validators - or only validators of the specified property