public function getPropertyValidators($propertyName = null) { if ($propertyName !== null) { return isset($this->propertyValidators[$propertyName]) ? $this->propertyValidators[$propertyName] : []; } else { return $this->propertyValidators; } }