eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::getContentCount PHP Method

getContentCount() public method

Returns the number of objects which are in this state.
public getContentCount ( mixed $stateId ) : integer
$stateId mixed
return integer
    public function getContentCount($stateId)
    {
        try {
            return $this->innerGateway->getContentCount($stateId);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }