Phalcon\Db\Adapter\MongoDB\UpdateResult::getModifiedCount PHP Method

getModifiedCount() public method

This value is undefined (i.e. null) if the write executed as a legacy operation instead of command. This method should only be called if the write was acknowledged.
See also: UpdateResult::isAcknowledged()
public getModifiedCount ( ) : integer | null
return integer | null
    public function getModifiedCount()
    {
        if ($this->isAcknowledged) {
            return $this->writeResult->getModifiedCount();
        }
        throw BadMethodCallException::unacknowledgedWriteResultAccess(__METHOD__);
    }