private function checkTrackedClassPropertyAmount() : string
{
$trackedPropertyList = PropertyFilter::getTrackedClassPropertyList($this->propertyList, $this->getTrackedPropertyTypeList());
$trackedPropertyAmount = count($trackedPropertyList);
if ($trackedPropertyAmount > $this->trackedMaxCount) {
$message = 'You have %d properties declared of "%s" type(s), must be less or equals than %d properties in total';
$error = sprintf($message, $trackedPropertyAmount, implode('", "', $this->getTrackedPropertyTypeList()), $this->trackedMaxCount);
return $error;
}
return '';
}