countTypesInGroup() abstract public method

Returns the number of types in a certain group.
abstract public countTypesInGroup ( integer $groupId ) : integer
$groupId integer
return integer
 /**
  * Returns the number of types in a certain group.
  *
  * @param int $groupId
  *
  * @return int
  */
 public function countTypesInGroup($groupId)
 {
     try {
         return $this->innerGateway->countTypesInGroup($groupId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
 /**
  * @param mixed $groupId
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\BadStateException If type group contains types
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If type group with id is not found
  */
 public function deleteGroup($groupId)
 {
     if ($this->contentTypeGateway->countTypesInGroup($groupId) !== 0) {
         throw new Exception\GroupNotEmpty($groupId);
     }
     $this->contentTypeGateway->deleteGroup($groupId);
 }