public function beginTransaction(): bool
    {
        if (!$this->inTransaction()) {
            $this->connection->beginTransaction();

            return $this->inTransaction = true;
        }

        return false;
    }
public function beginTransaction(): bool
    {
        if (!$this->inTransaction()) {
            $this->connection->beginTransaction();

            return $this->inTransaction = true;
        }

        return false;
    }
public function beginTransaction ( ) : bool { if ( ! $ this -> inTransaction ( ) ) { $ this -> connection -> beginTransaction ( ) ; return $ this -> inTransaction = true ; } return false ; }
Starts a transaction if it's not started yet.
Starts a transaction if it s not started yet .