/** * Counts all associated ClassProperties * @return int */ public function CountClassProperties() { if (is_null($this->intId)) { return 0; } return ClassProperty::CountByClassVariableId($this->intId); }